I have a grid with a list of entities that are plotted on a related map maintained in a separate pane.
We have enabled the filter in the ListGrid and now want the best way to have the filter in the grid be reflected in the map. Unfortunately, the data models between the grid and the map are different and thus can't rely on the same source (they are only related by an id).
How best can I detect that a filter has changed in the grid and the list of items that now match the filter best be applied to this outside map? I was looking for a "FilterChangedEvent" and found one that is offered by the FilterBuilder, but I don't see anything exposed by the FilterEditor in the ListGrid.
I've discovered that by calling listGrid's getRecordList(), I can get a list of the records that are currently matching the filter, thus it is straightforward for me to figure out which items I should be showing in the map view. However, I need a way to know when the filter was changed so that I can add/remove items from the map.
Any suggestions or pointers to examples are greatly appreciated.
We have enabled the filter in the ListGrid and now want the best way to have the filter in the grid be reflected in the map. Unfortunately, the data models between the grid and the map are different and thus can't rely on the same source (they are only related by an id).
How best can I detect that a filter has changed in the grid and the list of items that now match the filter best be applied to this outside map? I was looking for a "FilterChangedEvent" and found one that is offered by the FilterBuilder, but I don't see anything exposed by the FilterEditor in the ListGrid.
I've discovered that by calling listGrid's getRecordList(), I can get a list of the records that are currently matching the filter, thus it is straightforward for me to figure out which items I should be showing in the map view. However, I need a way to know when the filter was changed so that I can add/remove items from the map.
Any suggestions or pointers to examples are greatly appreciated.