Change Page on Server Side

2 posts, 0 answers
  1. Matteo
    Matteo avatar
    3 posts
    Member since:
    Oct 2010

    Posted 25 Feb 2011 Link to this post

    Hi, i'm working on an asp:datagrid with a telerik:RadDataPager.
    I have a button (new) to add a new item to the grid.
    Assuming that PageSize is 10.
    When I add the eleventh item to the grid I'd like to change the current page index of RadDataPager to page 2, but I can't find any property to set the current page.
    Can you help me please?
  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 03 Mar 2011 Link to this post

    Hello Matteo,

    You could try by using the FireCommand(commandName, commandArgument) method of the RadDataPager, where commandName should be "Page" and commandArgument the page index. Note that the control that you are paging needs to be already bound and having the 11th item, so its PreRender event would be a good place to try.

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top