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

Change Page on Server Side

1 Answer 114 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Matteo
Top achievements
Rank 1
Matteo asked on 25 Feb 2011, 06:04 PM
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?
Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Mar 2011, 10:13 AM
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.

Greetings,
Tsvetina
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!
Tags
DataPager
Asked by
Matteo
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or