Hide Tabs

8 posts, 1 answers
  1. Jan Oliver Rüdiger
    Jan Oliver Rüdiger avatar
    1 posts
    Member since:
    Nov 2009

    Posted 04 Feb 2011 Link to this post

    Hi,

    how can I hide the tabs from the PageViewControl?

    best regards,

    Jan
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 05 Feb 2011 Link to this post

    Hello,
    You can hide the tab of a radPageViewPage via the Item property.

    radPageViewPage1.Item.Visibility = ElementVisibility.Collapsed;

    Hope that helps
    Richard
  3. Josué
    Josué avatar
    1 posts
    Member since:
    Sep 2017

    Posted 14 Nov 2018 Link to this post

    This hides the tab, but if you have an adjacent tab, it leaves a space in the middle, which represents the width of the hidden tab.
  4. Hristo
    Admin
    Hristo avatar
    1520 posts

    Posted 15 Nov 2018 Link to this post

    Hi Josué,

    Please make sure to set the visibility to Collapsed, otherwise, the element will be measured and arranged but it will not be painted, resulting in the behavior you describe: 
    this.radPageView1.Pages[1].Item.Visibility = ElementVisibility.Collapsed;

    Regards,
    Hristo
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Jeffrey
    Jeffrey avatar
    6 posts
    Member since:
    Jan 2019

    Posted 02 Jan 2019 in reply to Richard Slade Link to this post

    Thanks! That solved my problem!
  6. Troy
    Troy avatar
    7 posts
    Member since:
    Jul 2020

    Posted 3 days and 14 hours ago Link to this post

    I tried this and it doesn't appear to be doing much of anything for me:

     

    mainTabs.Pages.Item(1).Visible = Telerik.WinControls.ElementVisibility.Collapsed

     

    There isn't a "Visibility" property as mentioned above, just Visible?

  7. Nadya
    Admin
    Nadya avatar
    348 posts

    Posted 2 days and 18 hours ago Link to this post

    Hello, Troy,

    Note, that you should set the Visibility property of a specified RadPageViewItem from the Pages collection. Please refer to the following code snippet in VB:

    RadPageView1.Pages(1).Item.Visibility = Telerik.WinControls.ElementVisibility.Collapsed

    I hope this helps. Should you have further questions please let me know.

    Regards,
    Nadya
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  8. Troy
    Troy avatar
    7 posts
    Member since:
    Jul 2020

    Posted 2 days and 9 hours ago in reply to Nadya Link to this post

    Thank you, I see what I was doing wrong now. =)
Back to Top