This is a migrated thread and some comments may be shown as answers.

Explorer Bar - Page Length

1 Answer 62 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 21 Feb 2013, 08:57 AM
Hi,

I have PageView control with viewmode set to ExplorerBar. I wish to have different length of the content pages which is why I've set  contentSizeMode to FixedLength and then set the pageLength on each of my RadPageViewPages.
All that works fine, my problem occurs when the project is closed and opened again - Its like that the pageLength iv'e set on the induvidial pages is reset to default value of 300 even though the project has been built and saved. Is there something other I need to do in order to make the PageLenght values stick to each RadPageViewPage ?

Regards,
Thomas

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 26 Feb 2013, 06:53 AM
Hi Thomas,

Thank you for writing.

I can confirm that the observed issue appears. It is caused by an exception in the designer and the issue is already logged in our Public Issue Tracking System. Feel free to add your vote for it here: http://www.telerik.com/support/pits.aspx#/details/Issue=13781.

For the time being, please consider introducing the desired settings in code;
this.radPageView1.ViewMode = Telerik.WinControls.UI.PageViewMode.ExplorerBar;
 
RadPageViewPage pageOne = new RadPageViewPage();
pageOne.Text = "First Page";
radPageView1.Pages.Add(pageOne);
 
RadPageViewPage pageTwo = new RadPageViewPage();
pageTwo.Text = "Second Page";
radPageView1.Pages.Add(pageTwo);
 
RadPageViewExplorerBarElement explorerBarElement = (this.radPageView1.ViewElement as RadPageViewExplorerBarElement);
explorerBarElement.ContentSizeMode = ExplorerBarContentSizeMode.EqualLength;
 
pageOne.PageLength = 200;
pageTwo.PageLength = 500;

I hope this helps.

Regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
PageView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or