get Pager value on the server

4 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 28 Jan Link to this post

    Hi

    How do I get the value of the Pager on the server, .Pagesize always returns the initial page load page size.

    What I'm trying to do is capture the users selected Pagesize in save it into their profile (I don't need the full persistence framework)

     Also where should I do the setting of the page size, Did I read that it was to be done in the NeedDataSource event?

    Andy

     

  2. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 02 Feb Link to this post

    Hello Andy,

    The property you are looking for is CurrentPageIndex. For your convenience, I am also sending a sample RadGrid web site to demonstrate how you can preserve it.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 02 Feb in reply to Eyup Link to this post

    Thanks Eyup, but what I need is the valus of the page size drowdown, ie 20, 50 All etc.

    Andy

  5. Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 05 Feb Link to this post

    Hi Andy,

    I've modified the sample to apply the requested functionality. Please check it out and let me know about the result.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top