Hide Pages

2 posts, 0 answers
  1. Chris Kirkman
    Chris Kirkman avatar
    101 posts
    Member since:
    Apr 2010

    Posted 12 Dec 2017 Link to this post

    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.

  2. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 13 Dec 2017 Link to this post

    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.
Back to Top