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

Maintaining State of Kendo Grid through Session

1 Answer 321 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aarti
Top achievements
Rank 1
Aarti asked on 03 Feb 2015, 05:55 PM
Hi,

I am trying to maintain state of kendo grid like Page Number,Page Size using session. I have referenced below example from your forum

http://www.telerik.com/support/code-library/save-grid-state-in-session-on-server-side

Problem is I don't have any button to Save or Load the grid state like above exmaple. 

I am saving the grid state on DataBound event of Grid and Loading the sate back from session in Document.ready function.

But its not working for me as  Index_Read function for Ajax binding of Grid  is always getting called first before LoadGridState function and thus session object is getting overridden with defualt values for pagesize, pageno etc.

Can you please help me on this.

Thanks
Aarti



1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Feb 2015, 03:26 PM
Hello Aarti,

You can use the autoBind option to prevent the binding on initialization in order to avoid the problem.

Regards,
Daniel
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Aarti
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or