Paging Issue

GRID //v.3.5 build 120731

To set up paging:

gridObj.enablePaging(true,10,5,“pagingContrl”,true, “pagingState”);
gridObj.setPagingSkin(“bricks”);

The returned page displays a long list, and the Pageing Numbers are displayed at the bottom of the page, like this:

item
item
item
item
item

item

Pages: [1][2][3]

Now, I scroll to the BOTTOM of the page to see the paging number. Next, I click on the “[2]”. Yes, the items on Page 2 are shown. But, there is a problem that the display area stays at the bottom position.

What I expect is when I click page “[2]”, the screen (GRID) automatically scroll to the top the page to display the top area of the grid.

How can I do that?

Thanks

Scott

Please, try to add the following code to your page:

myGrid.attachEvent("onPageChanged", function(ind,fInd,lInd){ myGrid.objBox.scrollTop=0 });