PDA

View Full Version : [FIXED] [V0.8.0] AsyncTreeNode



Timothy
Jan 25, 2009, 11:57 AM
Hello,

Quick question regarding the following example:

https://examples1.ext.net/#/TreePanel/Loaders/PageTreeLoader/

How come when I use this example, and set the Icon="House" on the root AsyncTreeNode it still renders as a folder?

I'm using the following:



<ext:TreePanel ID="Explore"
runat="server"
Border="false"
BodyStyle="padding: 2px;">
<Loader>
<ext:PageTreeLoader OnNodeLoad="NodeLoad" />
</Loader>
<Root>
<ext:AsyncTreeNode NodeID="0" Icon="House" Expandable="True" Expanded="true" Text="Home" />
</Root>
</ext:TreePanel>


Your help is much appreciated :)

Cheers,
Timothy

Vladimir
Jan 25, 2009, 1:34 PM
 Hi Timothy,

Please see the following topic
http://forums.ext.net/showthread.php?threadid=7558-16-1.aspx

Timothy
Jan 25, 2009, 7:07 PM
Thanks vlad, that worked.

What's the reasoning of having to register the icon of a root element?

Cheers,
Timothy

Vladimir
Jan 26, 2009, 7:01 AM
Hi Timothy,

Sorry, I didn't notice that you have mentioned about root node.
It was a bug, for static nodes no need call RegisterIcon. I fixed it. The fix in SVN
 

Timothy
Jan 26, 2009, 11:17 AM
Good, glad I followed up on that one, less complications the better :)

Cheers,
Timothy