Completed
Last Updated: 07 Jul 2020 08:23 by ADMIN
Release R3 2020 (LIB 2020.2.713)
Hristo
Created on: 23 Jun 2020 12:51
Category: PageView
Type: Bug Report
0
RadPageView: The ItemSizeMode and ItemSize properties are not working if they are set in the form`s constructor

How to reproduce: 

public Form1()
{
    InitializeComponent();

    this.radPageView1.ItemSizeMode = Telerik.WinControls.UI.PageViewItemSizeMode.EqualSize;
    this.radPageView1.ItemSize = new Size(50, 20);
}

1 comment
ADMIN
Hristo
Posted on: 23 Jun 2020 12:54

Workaorund: Set the properties in the Load event of the form or force the layout by calling the LoadElementTree method on the control

public Form1()
{
    InitializeComponent();
    
    this.radPageView1.LoadElementTree();
    this.radPageView1.ItemSizeMode = Telerik.WinControls.UI.PageViewItemSizeMode.EqualSize;
    this.radPageView1.ItemSize = new Size(50, 20);
}

 

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.