Change the items column width in PageViewer

2 posts, 0 answers
  1. Mehran
    Mehran avatar
    1 posts
    Member since:
    Apr 2013

    Posted 18 Apr 2013 Link to this post

    HI dudy,
    I`m programming a project in C# language, How can I change width of item column in PageViewer in backstage mode?
    and i dont know how can I move the vertical line near items, or change its property such as size, width, color and elc, I think knowing it will helps me.
    Thanks alot
  2. Paul
    Paul avatar
    60 posts

    Posted 23 Apr 2013 Link to this post

    Hello Mehran,

    Thank you for writing.

    We have a great article on how to customize the page view in BackStage Mode. Please have a look at it:

    To change the particular properties, you may use the following code:
    RadPageViewBackstageElement backStageElement = radPageView1.ViewElement as RadPageViewBackstageElement;
    StripViewItemContainer itemContainer = backStageElement.ItemContainer as StripViewItemContainer;
    StripViewItemLayout itemLayout = backStageElement.ItemContainer.ItemLayout as StripViewItemLayout;
    itemContainer.MinSize = new Size(150, 0);
    itemLayout.BorderRightWidth = 5;
    itemLayout.BorderRightColor = Color.Red;
    itemLayout.BorderRightShadowColor = Color.Red;

    These will help you control the size, color, thickness, etc. of the line near the items, and also move the line to left or right, changing the width of the element in this way.

    Hope this helps.

    Nikolay Aleksiev
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. DevCraft banner
Back to Top