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

[Solved] ActionResult Pagin not working

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gaurav
Top achievements
Rank 1
Gaurav asked on 26 Mar 2012, 11:42 AM
Hello,

I am trying to set .PageTo property for grid, which should set as -

.PageTo((int)ViewData["currentPage"]) to get current page, but the problem is ViewData["currentPage"] has no value.

The problem seems to be that ActionResult Paging event is not working/Firing

although i have registered it as

.DataBinding(dataBinding => dataBinding.Ajax().OperationMode(

 

GridOperationMode.Client).Select("_Paging", "Target").Delete("_Delete", "Target").Enabled(true)


Any reason why its not working..?
Thanks

1 Answer, 1 is accepted

Sort by
0
Dadv
Top achievements
Rank 1
answered on 27 Mar 2012, 01:54 PM
Hi,

GridOperationMode.Client  => All the operations (sort, paging, grouping, filtering) are made in client side, no other call than the first one will be done on server side.

If you want to use paging client side so look at this

Edit : You could use OnComplete event (fire only one time in GridOperationMode.Client) to page at "load"
Tags
General Discussions
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Dadv
Top achievements
Rank 1
Share this question
or