Pageview, Strip mode, fixed tab width?

1 Answer 241 Views
PageView
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 14 Aug 2021, 09:51 PM

I have a pageview in strip mode with the items on the left.

I'd like to keep the width of those tabs at a static value, as I am adding/removing tabs and the resizing is a bit visually jarring.  Is this possible?  And if so, how? 

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 18 Aug 2021, 02:09 AM

That worked, thank you very much!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Aug 2021, 06:53 AM
Hello, Troy,

RadPageView offers the ItemSizeMode property which allows you to control the size of the pageview items. You can achieve fixed width for the tabs by setting the ItemSizeMode property to EqualSize:
            this.radPageView1.ItemSizeMode = Telerik.WinControls.UI.PageViewItemSizeMode.EqualSize;
            this.radPageView1.ItemSize = new Size(150, 40);

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
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/.

Tags
PageView
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or