This is a migrated thread and some comments may be shown as answers.

[Solved] How set the currentPage in server-side

0 Answers 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Roma
Top achievements
Rank 1
Roma asked on 26 Aug 2011, 01:36 PM
public ActionResult Index(GridCommand command)
{
     command.Page; // 100000 (user played with url like this ?Grid-Page=100000 )
     // I want correct grid current page
     // something like this
     View["page"] = 10;
     ...
}
 
//view
.Pageable(paging => paging.PageTo(View["page"])) // this doesn't work, only for init grid.
Without ajax is it possible set grid.currentPage in server side?
(Protect from url as /Grid-Page= -10000&Grid-Size=10000)
Need help!
Tags
Grid
Asked by
Roma
Top achievements
Rank 1
Share this question
or