PDA

View Full Version : [CLOSED] Set selected node on initial page load



jchau
Jul 14, 2012, 5:51 PM
How can I set the selected node during the page load event without triggering the select event? I want the page to render with a node preselected.

Daniil
Jul 16, 2012, 11:19 AM
Hi @jchau,

I would implement it this way.

Example

<Listeners>
<ViewReady Handler="this.getSelectionModel().select(this.getStore().ge tNodeById('nodeId'));" />
</Listeners>

If you use a TreeStore to load nodes, then, probably, you should use its Load listener.