Hi
I have a dynamically added UserControl inside my RadTreeView. During a serverside event, I need to get the control to extract the data inside, but I cannot seem to find the control. The binding is executed both on post and postback.
This is the binding of the control:
This is the serverside event, where I am trying to get hold of the data...
Is the control-id not what i set it to?
I have a dynamically added UserControl inside my RadTreeView. During a serverside event, I need to get the control to extract the data inside, but I cannot seem to find the control. The binding is executed both on post and postback.
This is the binding of the control:
foreach (Event item in eventList){ RadTreeNode rootNode = new RadTreeNode(item.Name, item.Id.ToString()); rootNode.Expanded = true; RadTreeNode childNode = new RadTreeNode(); ActorNode actorNode = (ActorNode)LoadControl("ComponentControls/ActorNode.ascx"); actorNode.ID = ACTOR_NODE_ID + item.Id; List<Actor> actorList = Actor.GetActorList(item.Id); List<MunicipalityActor> munActorList = MunicipalityActor.GetMunActorList(MunCode); actorNode.InitializeControl(municipalityActorList, actorList); childNode.Controls.Add(actorNode); rootNode.Nodes.Add(childNode); RadTreeView_Actors.Nodes.Add(rootNode);}This is the serverside event, where I am trying to get hold of the data...
foreach (RadTreeNode rootNode in RadTreeView_Actors.Nodes){ Control control = rootNode.Nodes[0].FindControl(ACTOR_NODE_ID + rootNode.Value);}Is the control-id not what i set it to?