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

Hide Tabs

7 Answers 2420 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 05 Feb 2011, 04:11 AM
Hi,

how can I hide the tabs from the PageViewControl?

best regards,

Jan

7 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 05 Feb 2011, 09:51 AM
Hello,
You can hide the tab of a radPageViewPage via the Item property.

radPageViewPage1.Item.Visibility = ElementVisibility.Collapsed;

Hope that helps
Richard
0
Josué
Top achievements
Rank 2
answered on 14 Nov 2018, 11:14 PM
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.
0
Hristo
Telerik team
answered on 15 Nov 2018, 09:38 AM
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.
0
Jeffrey
Top achievements
Rank 1
answered on 02 Jan 2019, 08:58 PM
Thanks! That solved my problem!
0
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
answered on 27 Sep 2020, 05:51 PM

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?

0
Nadya | Tech Support Engineer
Telerik team
answered on 28 Sep 2020, 01:38 PM

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/.

0
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
answered on 28 Sep 2020, 10:10 PM
Thank you, I see what I was doing wrong now. =)
Tags
PageView
Asked by
Jan
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Josué
Top achievements
Rank 2
Hristo
Telerik team
Jeffrey
Top achievements
Rank 1
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Nadya | Tech Support Engineer
Telerik team
Share this question
or