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

Change the items column width in PageViewer

1 Answer 129 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Mehran
Top achievements
Rank 1
Mehran asked on 18 Apr 2013, 11:32 PM
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

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 23 Apr 2013, 12:27 PM
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:
http://www.telerik.com/help/winforms/pageview-backstageview-customizing-backstageview.html

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.

Regards,
Nikolay Aleksiev
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
PageView
Asked by
Mehran
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or