Hi Users,
I have a data grid and I am using Query task to perform query.
I have changed the grid to enhanced grid so that I can get check box there.
The issue I am facing is whenever I perform a query the data gets populated, and suppose I select second and third row in grid after this I perform another query the data will get changed but selection will remain same.i.e for the new result also 2nd and 3rd row will be selected by default.
Any Idea why the selection is not getting removed during data change.
Thanks
Aditya Kumar
Solved! Go to Solution.
Can you use the clearSelection method on the grid when you change the store?
Can you share you code or ut it on jsBin?
Can you use the clearSelection method on the grid when you change the store?
if (grid.selection.selectedIndex >0)
{
grid.selection.clear();
grid.selection.addToSelection(newItemIndex);
grid.selection.getFirstSelected();
}