Skip to content

How to migrate 0.3 dgrid event.results passed by dgrid-refresh-complete? #1106

Open
@twelveeighty

Description

@twelveeighty

In the 0.3 days of dgrid, a dgrid-refresh-complete event had a 'results' property with the latest data on the grid. We relied on this property to run post-processing against the results (totals, etc.) with having to re-query the storage back-end. In version 0.4, this 'results' property has been removed.

What would be the "new" way of post-processing results returned from a Rest dstore upon dgrid-refresh-complete? In our case, the dgrid is hooked directly to the Rest dstore because I want to have sorting handled by the rest server. I also don't want to query the rest server twice, once for the grid and once more for post-processing.

Edit: how about if the method set("collection", some_collection) returns the promise from refresh() that gets called by set("collection")?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions