Hide Tabs

5 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
    1507 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 in reply to Richard Slade Link to this post

    Thanks! That solved my problem!
Back to Top