I have 2 ListGrids: top and bottom. The bottom grid gets filtered based on what is selected in the top grid. I did this by adding a SelectionUpdatedHandler to top that calls bottom.filterData with a criteria based on the selection. So when the user clicks on an item with a certain Category, only those matching in bottom will be displayed.
Now, I'm trying to do the reverse: to select an item in top when the user filters using the filter editor for a specific field. For example, in the filter editor for the bottom grid's Category field, the user types 1. This should cause the bottom grid to display only items with Category 1. I also want the item with Category 1 to be selected in the top grid.
I tried adding a FilterSubmitHandler that calls selectRecord on the top grid that matches the filter. However, this also invokes the SelectionUpdatedHandler added to top. Is there a way to tell the difference between when the user clicked a checkbox to select verses when it's done programmatically?
Now, I'm trying to do the reverse: to select an item in top when the user filters using the filter editor for a specific field. For example, in the filter editor for the bottom grid's Category field, the user types 1. This should cause the bottom grid to display only items with Category 1. I also want the item with Category 1 to be selected in the top grid.
I tried adding a FilterSubmitHandler that calls selectRecord on the top grid that matches the filter. However, this also invokes the SelectionUpdatedHandler added to top. Is there a way to tell the difference between when the user clicked a checkbox to select verses when it's done programmatically?
Comment