SmartGWT LGPL 2013-11-07
Hi guys - I have a list grid backed by a data source. Given that setReselectOnUpdate is true, with no grouping enabled, filtering works great. I can select an item in the grid, type content in the filter, watch the grid get filtered, and see the item get reselected if it still applies after filtering.
But with grouping enabled, the content still filters, but my selected item doesn't get re-selected. I also see an additional SelectionChangedEvent fired with grouping enabled when I filter. The first event shows it as selected, but the second event shows it as un-selected.
I tried a workaround - in a SelectionChangedHandler, if a flag I set before filtering is true I try to manually call selectSingleRecord but that just causes SelectionChangedEvent to fire another time and the last time it's fired still "wins" and unselects it.
Hoping you won't need a test case for this one due to its simplicity? Any of the showcase filter examples with grouping turned on should reproduce?
Thanks,
-Becky
Hi guys - I have a list grid backed by a data source. Given that setReselectOnUpdate is true, with no grouping enabled, filtering works great. I can select an item in the grid, type content in the filter, watch the grid get filtered, and see the item get reselected if it still applies after filtering.
But with grouping enabled, the content still filters, but my selected item doesn't get re-selected. I also see an additional SelectionChangedEvent fired with grouping enabled when I filter. The first event shows it as selected, but the second event shows it as un-selected.
I tried a workaround - in a SelectionChangedHandler, if a flag I set before filtering is true I try to manually call selectSingleRecord but that just causes SelectionChangedEvent to fire another time and the last time it's fired still "wins" and unselects it.
Hoping you won't need a test case for this one due to its simplicity? Any of the showcase filter examples with grouping turned on should reproduce?
Thanks,
-Becky