7 Answers, 1 is accepted
You can hide the tab of a radPageViewPage via the Item property.
radPageViewPage1.Item.Visibility = ElementVisibility.Collapsed;
Hope that helps
Richard
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
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?
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/.