Nov 29, 2010, 4:32 PM
[CLOSED] Making a TreePanel stateful
Is there a good example somewhere of a TreePanel which saves the expanded/collapsed state of the tree nodes in the user's cookies?
I've been trying to do this on and off for a number of months. My gut feel is that it should be simple. Perhaps there is something I am missing.
My code at the moment is included below. When I expand some nodes and refresh (F5) the tree reappears in the default state (no nodes expanded).
I've been trying to do this on and off for a number of months. My gut feel is that it should be simple. Perhaps there is something I am missing.
My code at the moment is included below. When I expand some nodes and refresh (F5) the tree reappears in the default state (no nodes expanded).
<ext:TreePanel
ID="TreePanel1"
runat="server"
AutoHeight="true"
Visible="true"
RootVisible="false"
Stateful="true"
Lines="false"
StateEvents="collapseNode,expandNode"
StateID="Home1"
>
<Loader >
<ext:PageTreeLoader OnNodeLoad="NodeLoad" />
</Loader>
<Root>
<ext:AsyncTreeNode NodeID="R_0" Text="Root" />
</Root>
</ext:TreePanel>
Last edited by Daniil; Nov 30, 2010 at 11:28 AM.
Reason: [CLOSED]