Nov 19, 2010, 5:44 PM
[CLOSED] Programmatically change root text in Treepanel control
Hello,
Is this possible to do from the code-behind for a page?
I have a treepanel similar to the following:
Is this possible to do from the code-behind for a page?
I have a treepanel similar to the following:
<ext:TreePanel ID="tree" runat="server" Title="My Tree Panel" Border="false" Width="340"
AutoScroll="true" UseArrows="true" ContainterScroll="true">
<Root>
<ext:AsyncTreeNode NodeID="0" Text="Root" />
</Root>
<Loader>
<ext:PageTreeLoader OnNodeLoad="NodeLoad">
</ext:PageTreeLoader>
</Loader>
</ext:TreePanel>
Protected Sub NodeLoad(ByVal sender As Object, ByVal e As NodeLoadEventArgs)
If e.NodeID = 0 Then
'Would like to do something like
'e.Text = "My Text"
End If
End Sub
-Eric
Last edited by Daniil; Nov 24, 2010 at 6:56 AM.
Reason: [CLOSED]