Completed
Last Updated: 23 Jun 2020 13:32 by ADMIN
Release Q1 2014 SP1
ADMIN
Stefan
Created on: 23 Nov 2010 09:04
Category: PageView
Type: Feature Request
16
ADD. Functionality for resizing the tabs of RadPageView pages.
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);
7 comments
ADMIN
Hristo
Posted on: 23 Jun 2020 13:28

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

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 06 May 2019 08:10
Hello, David,     

I have prepared a sample project demonstrating how to specify the MinSize property of the tab:

public RadForm1()
{
    InitializeComponent();
 
    foreach (RadPageViewPage page in this.radPageView1.Pages)
    {
        page.Item.MinSize = new Size(300, 50);
    }
}

The specified size is respected on my end with the latest version:



Could you please specify the exact steps how to reproduce the problem?

As to the ViewMode, note that it expects one of the values in the PageViewMode enum. However, if you need to hide the page tabs in order to prevent the user from navigating the pages, you can use the following code snippet:

this.radPageView1.ViewMode = PageViewMode.Strip;
RadPageViewStripElement stripElement = this.radPageView1.ViewElement as RadPageViewStripElement;
stripElement.ItemContainer.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
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.
Attached Files:
David
Posted on: 03 May 2019 17:11

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

David
Posted on: 03 May 2019 17:07

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

 

 

ADMIN
Dimitar
Posted on: 02 May 2019 08:11
Hello David,

I have cheeked this and indeed it is not working with the latest version. I have updated the issue status and our developers will look into it. I have updated Telerik Points as well.

As a workaround you can set the MinSize of the each item:
For Each page As RadPageViewPage In radPageView1.Pages
   page.Item.MinSize = New Size(300, 50)
Next page

Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
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.
David
Posted on: 02 May 2019 00:13

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

ADMIN
Ralitsa
Posted on: 19 Mar 2014 11:27
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.