View Full Version : [CLOSED] TreePanel with more than one TreeColumn

May 10, 2012, 8:08 PM
I wonder why the TreePanel just allow one TreeColumn column.

The following example renders correctly but it fails if i change the type of _cln2 to TreeColumn or if i change the type of _cln1 to Column

<ext:TreePanel ID="_tp" UseArrows="true" Title="Tree"
Height="500" Width="500" Border="false" runat="server">
<ext:TreeStore ID="_ts" runat="server">
<ext:AjaxProxy Url="/Example/LoadTree/">
<ActionMethods Read="POST" />
<ext:JsonReader Root="data">
<ext:Model ID="_mdl" runat="server">
<ext:ModelField Name="Name" />
<ext:ModelField Name="Lastname" />
<ext:Node NodeID="0" Text="Root" />
<ext:TreeColumn ID="_cln1" runat="server" Text="Name" Sortable="true"
DataIndex="Name" />
<ext:Column ID="_cln2" runat="server" Text="Lastname" Sortable="true"
DataIndex="Lastname" />

May 10, 2012, 8:45 PM

Well, TreeColumn is a main column and, really, must be single. It provides indentation and folder structure markup for a Tree taking into account depth and position within the tree hierarchy.

May 11, 2012, 11:34 AM
Thank you daniil. Please mark it as closed