Maintaining State of Kendo Grid through Session

2 posts, 0 answers
  1. Aarti
    Aarti  avatar
    20 posts
    Member since:
    Mar 2014

    Posted 03 Feb 2015 Link to this post

    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



  2. Daniel
    Admin
    Daniel avatar
    2231 posts

    Posted 05 Feb 2015 Link to this post

    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.

     
Back to Top