Feb 04, 2009, 9:28 AM
[CLOSED] Select TreeNode Programatically
Hi,
I'd like to be able to optionally select a TreeNode programatically.
Now in the example above the Append fires, but it does fire the click event attached to the node. Is it possible to fire that event at the same time?
Regards,
Ben
I'd like to be able to optionally select a TreeNode programatically.
<ext:TreePanel
ID="AccountPatientsTree"
runat="server"
AutoHeight="true"
Border="false">
<Loader>
<ext:WebServiceTreeLoader DataUrl="/WebService.asmx/GetStuff" RequestMethod="POST" />
</Loader>
<Root>
<ext:AsyncTreeNode NodeID="0" Text="Patients" Expanded="true" />
</Root>
<Listeners>
<Append Handler="if(node.id === 'e2b9fe83-8064-42f7-ada4-2f95a5ef9923') { node.select.defer(100, node); }" />
<Click Handler="" />
</Listeners>
</ext:TreePanel>
I've got part way by having the Append listener but I need to be able to set the value for the comparison in the code behind or remove the whole listener when not auto-selecting.Now in the example above the Append fires, but it does fire the click event attached to the node. Is it possible to fire that event at the same time?
Regards,
Ben