This demo shows the resizing capabilities of Telerik RadTreeList. The product supports
Column-resizing with an option for real-time resizing on the client. You merely
need to set the respective properties from the control's property treelist or in
the code-behind:
ClientSettings -> Resizing -> AllowColumnResize = true
ClientSettings -> Resizing -> EnableRealTimeResize = true
User can set an initial values for the resized column using MinWidth/MaxWidth
properties of RadTreeList column.
RadTreeList supports three modes of column resizing:
-
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.
-
AllowScroll-Works only when scrolling is turned on. Does not change the
width of the treelist, only the width of its inner table and adds scroll. The resized
column changes width while the other columns stay the same.
-
ResizeTreeList-The whole control changes width together with the resized
column. Other columns stay the same width.
The demo also demonstrates show/hide columns with a specified index using show()
and hide() client-side methods of RadTreeList.
Moreover, the demo presents the reordering functionality of Telerik RadTreeList.
Two kinds of reordering are available of RadTreeList: "Swap" and "Reorder". This
is controlled by ClientSettings.Reordering.ColumnsReorderMethod
enumeration property. To swap the position of two columns simply drag and drop the
column header of the first column over the header of second column. In case of reorder,
just drag and drop a respective column header between other two column headers.
Column reordering can be performed server-side (AllowColumnsReorder="true")
or client-side (AllowColumnsReorder="true" and ReorderColumnsOnClient="true").