Get Active page on RadPageView

2 posts, 0 answers
  1. ISB-developer
    ISB-developer avatar
    21 posts
    Member since:
    Jul 2011

    Posted 18 Oct 2011 Link to this post

    I am developing an application in which I need to get the active page on a radpageview in order to make different settings for each page. For example when I am in page 0 I would like to block the button maximize from the application, but on the other hand, when I click on page 1 I need to leave the user to maximize the window if he wants this.

    Can this be done? If Yes then what is the event that recognize the page changes from radpageview and how do I get the active page name or index?

  2. Ivan Petrov
    Ivan Petrov avatar
    718 posts

    Posted 20 Oct 2011 Link to this post

    Hello Isb-Developer,

    Thank you for writing.

    You can use the SelectedPageChanging or SelectedPageChanged events for your scenario. The changing event fires before the actual change of the pages and you can get the page the user is trying to navigate to from the event arguments. You can also cancel this event and prevent the page change all together. The changed event fires directly after the change and you can use the SelectedPage property to get the page the user has navigated to.

    I hope this will help. If you need further assistance, I would be glad to help.

    Ivan Petrov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top