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

Making The Selected Tab Visible

1 Answer 127 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Don Tompkins
Top achievements
Rank 1
Don Tompkins asked on 22 Nov 2011, 09:08 PM
Hello, I am using the RadPageView in a dialog box with about 10 different tabs. I want to set the first tab to be selected by default programatically so I use the code:

RadPageView1.SelectedPage = tabAutomation

in the form load handler, and this works, however, when the page is rendered the selected tab is not visible. This seems to happen if a tab that is down the line was selected at build time. Is there a property that will bring the selected tab into view at runtime?

Thanks

Don Tompkins
Databound Solutions, Inc.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 24 Nov 2011, 04:53 PM
Hi Don,

Thank you for writing.

I will recommend selecting the desired tab (the first one in your case) at design time - simply select it in the control at design time. This way, this page will be selected at runtime and the page item (tab) will be visible. 

I have tested the code that you have provided and indeed the tab is not visible, regarding the fact that its page is selected. I will add this into our PITS system, and we will address it in a future release. Here is a link to the item, where you can add your vote for it.

Your Telerik points have been updated for this report.

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us. 

Regards,
Stefan
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
PageView
Asked by
Don Tompkins
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or