This is a migrated thread and some comments may be shown as answers.

RadTreeNodeEventArgs

1 Answer 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Matteo Pellizzoni
Top achievements
Rank 1
Matteo Pellizzoni asked on 24 Mar 2010, 12:42 PM
Hi,
I'm using a RadTreeView:

<telerik:RadTreeView ID="RadTreeView1" runat="server" DataFieldID="CompetitionID" 
            DataTextField="Description"  
            DataValueField="CompetitionID"  
            CheckChildNodes="True"
</telerik:RadTreeView> 

I filled in all the root nodes
When I try to expand a node in order to populate that node "on demand", I want to have to node in order to find out its id and its position in the tree:

Protected Sub RadTreeView1_NodeExpand1(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeExpand 
        PopulateNodeOnDemand(e, TreeNodeExpandMode.ServerSideCallBack) 
End Sub 
 


I see that the RadTreeNodeEventArgs "e" is empty. No nodes in.


Can someone tell me what's the problem?
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 25 Mar 2010, 08:05 AM
Hello Matteo Pellizzoni,

From first look the code seems OK but I can not see where you set the ExpandMode of the RadTreeNodes and what is it.

Could you please attach the full code so we can be able to help you.

Thank you!

All the best,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Matteo Pellizzoni
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or