Sorting grid and page position

Talk about Sorting & Paging problems, issues etc.

Moderator: alexandrleonenko

dynsight
Expert
Expert
Posts: 99
Joined: Mar 3rd, '11, 03:05

Sorting grid and page position

Postby dynsight » May 24th, '12, 01:51

Whenever I sort a grid column, I lose the position and it jumps to the top of the page... This is not bad if it is the top grid. However, if it a child grid, and the top of the page is scrolled to the top, clicking on the column header forces the page to jump to the top, and you have to scroll back down to the page.

Is there anyway to prevent this from happening?

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: Sorting grid and page position

Postby administrator » May 24th, '12, 08:09

Use non-documented feature -
$dgrid-> AllowTopAnchor(true);

dynsight
Expert
Expert
Posts: 99
Joined: Mar 3rd, '11, 03:05

Re: Sorting grid and page position

Postby dynsight » May 24th, '12, 09:47

thanks... that should be set by default....


Return to “Settings: Sorting & Paging”