:: Forum >>

sort direction and setScrollTop

After refreshing the grid, I want to sort a special column and see the selected row from the last view at the beginning of the grid.

obj.sort(3,"descending);
obj.setSelectedRows([3]);
obj.setScrollTop (3 * 20);
obj.setCurrentRow(3);

The selection mode of the grid is 'mulit-row'.

I cant' see the selected Row in my view. I always have to scroll.

Any ideas?

claudia
Tuesday, August 12, 2008
Do you need more information?
claudia
Thursday, August 14, 2008
Sorting triggers grid refresh. I guess you need to call row selection code after some delay and not immediately after calling the sort method.
Alex (ActiveWidgets)
Friday, August 15, 2008

This topic is archived.


Back to support forum

Forum search