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

Get Active page on RadPageView

1 Answer 683 Views
PageView
This is a migrated thread and some comments may be shown as answers.
ISB-developer
Top achievements
Rank 2
ISB-developer asked on 18 Oct 2011, 07:11 AM
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

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 20 Oct 2011, 09:26 AM
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.

Tags
PageView
Asked by
ISB-developer
Top achievements
Rank 2
Answers by
Ivan Petrov
Telerik team
Share this question
or