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

Column Sizing

1 Answer 48 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 11 Jul 2013, 06:31 AM
Hello,

As you can see in the demo:
http://demos.telerik.com/aspnet-ajax/treelist/examples/client/resizing/defaultcs.aspx

When you size one column, the other columns are also adjusted... Even when I state a fixed width (40px ie) and state that the column is not sizeable, and state the min and max size at 40px, it still gets sized when i size an other column... how can I make a column stay 40px??

Erik

1 Answer, 1 is accepted

Sort by
0
Deyan Enchev
Telerik team
answered on 15 Jul 2013, 11:56 AM
Hello Erik,

When using RadTreeList columns there are several resize modes available for you to pick.

I guess you are using the first ResizeMode we support – “NoScroll” (the default one for the demo). In case you select NoScroll mode and decide to resize a column in the TreeList, the size of the other columns will be changed in order for the TreeList to keep its original width. This is expected behavior and is explained in the Description section of the demo. Here is a short quote:

"- NoScroll (this is the default value) - No changes in the width of the TreeList. The resized column changes width - while the other columns are squeezed at the two ends."

As a summary - when in NoScroll mode, in order to size the columns properly without breaking the TreeList layout, RadTreeList automatically clears the predefined width of the columns that are on the right of the resized column. In case you want to have columns with fixed sizes you should pick one of the other resize modes available for the TreeList: AllowScroll or ResizeTreeList

Here is a link to our online documentation article where you can explore the various column resize methods and restrictions.

Regards,
Deyan Enchev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeList
Asked by
Erik
Top achievements
Rank 2
Answers by
Deyan Enchev
Telerik team
Share this question
or