codaxy/cxjs

Filtering and sorting data proxy

mstijak opened this issue · 1 comments

Grids, lists, and repeaters offer filtering and sorting capabilities. This works fine, but sometimes we need access to the data set after these operations are performed.

It would be nice to offer a component that would do these operations and write results back to the store as a mutable collection.

<RecordsProxy input-bind="records" output-bind="$filteredRecords" filterParams={...} onCreateFilter={...} sortField="">
<Grid records-bind="$filteredRecords" />
</RecodsProxy>

Alternatively, we could add an output field to the grid.

<Grid rows-bind="rows" />

However, this would be read-only.

onTrackMappedRecords grid callback is added to support retrieving records after filtering/sorting has been applied.