3.2.0

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
August 12,
Do you need more information?
claudia
August 14,
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)
August 15,

This topic is archived.

See also:


Back to support forum