Event to intimate number of pages increase.

2 posts, 1 answers
  1. munawar
    munawar avatar
    1 posts
    Member since:
    Jun 2012

    Posted 30 Aug 2016 Link to this post


    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.

  2. Answer
    Stefan avatar
    899 posts

    Posted 01 Sep 2016 Link to this post

    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.

    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.
Back to Top