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

set checkbox when adding node to tree

3 Answers 15 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 07 Nov 2016, 06:28 PM

 var node = new RadTreeNode(valuedata, textdata);
                                       
node.Checked = true;                      
                   
rddtboxBuisness.EmbeddedTree.Nodes.Add(node);

 

When adding nodes to the control I cant default the checkbox to true...

am I doing anything wrong ?

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 Nov 2016, 11:35 AM
Hello Hector,

From the code provided it is not clear which event handler the node gets added to the DropDownTree in and also we don't know how the control is configured. I attached a sample runnable page, in which a node is added to the DropDownTree in the Page_Load event handler and it is correctly displayed as checked. Please modify the page so that it demonstrates the issue and post your modifications for further review.

Regards,
Ivan Danchev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Hector
Top achievements
Rank 1
answered on 10 Nov 2016, 01:39 PM

the code was in the itemcreated event of the radgrid... I am trying to assigned the saved data to the dropdowntree when the users is editing the record .

        protected void rgTeammates_ItemCreated(object sender, GridItemEventArgs e)

if (e.Item.IsInEditMode)
            {

 

}

}

0
Ivan Danchev
Telerik team
answered on 14 Nov 2016, 01:00 PM
Hello Hector,

I replied in the support ticket with the same subject you opened. If you have further questions I suggest we continue the discussion in it in order to avoid thread duplication. Any information from it that could be interesting or helpful to the community we can subsequently post in this thread as well. 

Regards,
Ivan Danchev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
DropDownTree
Asked by
Hector
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Hector
Top achievements
Rank 1
Share this question
or