Grid remembers selected rows even after refresh
How can I make sure that all rows are "unselected" when I refresh the data?
the grid keeps its state in a set of data models/properties independent of the HTML structure. You should be able to re-create HTML at any time calling 'toString' method (as 'refresh' method does). So calling 'refresh()' should not change control state.
To clear the selected row(s) you can just do
thanks for the tip. I will make sure I unselect the row but I do think that this should be the default behavior since when refresh is called, new data may be fetched and displayed on the grid and keeping the state does not make sense. What if row 9 was selected before the refresh and only 5 rows are present in the grid after the refresh?
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.