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

Event to intimate number of pages increase.

1 Answer 33 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
munawar
Top achievements
Rank 1
munawar asked on 30 Aug 2016, 07:38 AM

Hi,

I have a radGridView and a RadDataPager. The source of RadDataPager.Source is bound to RadGridView.items. Adding items in grid automatically increases number of pages.

Is there any event available that can intimate me if number of pages are increased in data pager? Actually I want to call dataPager.MoveToLastPage(); if items are added in grid.

Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 01 Sep 2016, 01:31 PM
Hi Munawar,

There is no built-in mechanism for satisfying this requirement. However, you should be able to implement logic for handling the scenario by basing it on the count of the newly added items. When it reaches the value that is set to the PageSize property of RadDataPager, you can call the MoveToLastPage method of the control.

I hope this helps.

Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
DataPager
Asked by
munawar
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or