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

Null Template when adding nodes in NodeExpand

1 Answer 7 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
JNG
Top achievements
Rank 1
JNG asked on 12 Oct 2015, 04:37 PM

I am adding nodes in the NodeExpand event to utilize LOD.  However, the treeview uses a NodeTemplate which is added in the OnInit and Page_load events.  But I cannot access the controls for the new node that I'm adding.  Do I need to add the node to the treeview first and reiterate through it to access the control?

 I need to access the controls to set a control to visible for the newly created node and to modify the node text.

1 Answer, 1 is accepted

Sort by
0
JNG
Top achievements
Rank 1
answered on 12 Oct 2015, 04:43 PM
Disregard.  I had to add the new node to the parent node first.
Tags
TreeView
Asked by
JNG
Top achievements
Rank 1
Answers by
JNG
Top achievements
Rank 1
Share this question
or