Explorer Bar - Page Length

2 posts, 1 answers
  1. Thomas
    Thomas avatar
    19 posts
    Member since:
    Oct 2012

    Posted 21 Feb 2013 Link to this post


    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 ?

  2. Answer
    Plamen avatar
    132 posts

    Posted 26 Feb 2013 Link to this post

    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";
    RadPageViewPage pageTwo = new RadPageViewPage();
    pageTwo.Text = "Second Page";
    RadPageViewExplorerBarElement explorerBarElement = (this.radPageView1.ViewElement as RadPageViewExplorerBarElement);
    explorerBarElement.ContentSizeMode = ExplorerBarContentSizeMode.EqualLength;
    pageOne.PageLength = 200;
    pageTwo.PageLength = 500;

    I hope this helps.

    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top