Apr 14, 2010, 1:35 PM
TreePanel - load root with loader
Hi,
I would like to load the root node of a tree from a loader, as I do for the other nodes, instead of hardcoding it into markup or code behind. Would that be possible? How?
Thanks.
This is an example of the tree I would like to work on:
I would like to load the root node of a tree from a loader, as I do for the other nodes, instead of hardcoding it into markup or code behind. Would that be possible? How?
Thanks.
This is an example of the tree I would like to work on:
<ext:TreePanel ID="selectionTree" runat="server"
Title="Select:" RootVisible="false" AutoScroll="true">
<Loader>
<ext:TreeLoader
DataUrl="TreeSelectorLoader.ashx" />
</Loader>
<Root>
<ext:AsyncTreeNode NodeID="Root" />
</Root>
<Listeners>
<CheckChange Handler="toggleNodeCheck(node);"
/>
</Listeners>
</ext:TreePanel>