Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PageView > Get Active page on RadPageView

Not answered Get Active page on RadPageView

Feed from this thread
  • Posted on Oct 18, 2011 (permalink)

    Hi,
    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?

    Thanks

    Reply

  • Ivan Petrov Ivan Petrov admin's avatar

    Posted on Oct 20, 2011 (permalink)

    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.

    Regards,
    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.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PageView > Get Active page on RadPageView