Add functionality for resizing the tabs of RadPageView pages (resizing the RadPageViewPageItem). Resolution : This functionality can be achieved with the MinSize/MaxSize properties. For example: radPageViewPage1.Item.MinSize = new Size(150, 30);
Hello,
I would like to update the thread with some additional information.
The feature has been implemented in R1 2014 SP1: https://www.telerik.com/support/whats-new/winforms/release-history/q1-2014-sp1-(version-2014-1-402). We did not find any regressions and the functionality is working as expected. Tabs can be sized this way:
private void radButton1_Click(object sender, EventArgs e)
{
this.radPageView1.ItemSizeMode = Telerik.WinControls.UI.PageViewItemSizeMode.EqualSize;
this.radPageView1.ItemSize = new Size(50, 20);
}
private void radButton2_Click(object sender, EventArgs e)
{
this.radPageView1.ItemSizeMode = Telerik.WinControls.UI.PageViewItemSizeMode.Individual;
this.radPageViewPage2.ItemSize = new SizeF(200, 40);
}
We found an issue when setting the ItemSizeMode to EqualSize in the form`s constructor. I have logged it separately on our portal here: https://feedback.telerik.com/winforms/1473037-radpageview-the-itemsizemode-and-itemsize-properties-are-not-working-if-they-are-set-in-the-form-s-constructor. The newly logged issue is already being investigated and this item will be closed.
Regards,
Hristo
Progress Telerik
public
RadForm1()
{
InitializeComponent();
foreach
(RadPageViewPage page
in
this
.radPageView1.Pages)
{
page.Item.MinSize =
new
Size(300, 50);
}
}
this
.radPageView1.ViewMode = PageViewMode.Strip;
RadPageViewStripElement stripElement =
this
.radPageView1.ViewElement
as
RadPageViewStripElement;
stripElement.ItemContainer.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Is there any way to set the view mode to None so that there is no user interface to select a page at runtime? That is what I am really trying to achieve here.
Thank You, David
Thank you but this isn't working for me either. The tab sizes remain the same as they are in Design time.
RadPageViewDeal.ItemSizeMode = PageViewItemSizeMode.EqualSize
For Each page As RadPageViewPage In RadPageViewDeal.Pages
page.Item.MinSize = New Size(10, 10)
Next page
For
Each
page
As
RadPageViewPage
In
radPageView1.Pages
page.Item.MinSize =
New
Size(300, 50)
Next
page
This isn't working for me:
RadPageViewDeal.ItemSizeMode = PageViewItemSizeMode.EqualSize
RadPageViewDeal.ItemSize = New Size(100, 20)
The tabs remain the same size they are in design time.
Thanks
Add the ItemSize property of the RadPageView which gets or sets the size of the items when ItemSizeMode of RadPageView is PageViewItemSizeMode.EqualSize mode. Add the ItemSize property of the RadPageViewPage which gets or sets the size of the item of RadPageView when the mode is PageViewItemSizeMode.Individual.