This is a migrated thread and some comments may be shown as answers.
Hide Pages
1 Answer 38 Views
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 12 Dec 2017, 06:22 PM

I have "x" number of PageViewPage's on my PageView. 

I need to be able to hide/show specific PageViewPage objects in code-behind.  I am not seeing any way to do this.  Basically I just want the "tab" for the page to go away and come back when I dictate. 

I can't destroy and then re-show the pages however, because they were built using the designer many years ago and are very elaborate.  The current solution and timing required for my project doesn't allow for going back and retooling the UI just so I could put the content of those items built in designer in to separate user controls.  So, that idea is out.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Dec 2017, 07:40 AM
Hi Chris,

You can hide the tab with the following code, however, this would not ide the page and this is why you need to change the selected page as well:
private void radButton1_Click(object sender, EventArgs e)
{
    radPageViewPage2.Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    radPageView1.SelectedPage = radPageViewPage1;
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or