PDA

View Full Version : Treepanel Async, how to preselected an item on init?



danyric
23 Mar 2011, 11:57 PM
Hi,

I'm looking since for a while, and with no success to pre selected an item on a async treepanel, when he's rendered.
The problem is that the store is not populated, I have the id of the node to reach, but I don't know how to load partialy the store to expanded the tree up to these node.

To illustrate, I want to reach the node 21, which is under N10,N20, but it's not possible as long as the store is not load until this point, how I can do this



+N1
+N10

+N1
|_N2
|_N3
+N10
|_N20
|_N21
|_N..


Any suggestion would be greatly apreciated.
Thanks.