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

Not able to add text in Client Area ie DropDown

1 Answer 12 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 30 Sep 2014, 05:13 AM
Hi am able to select value on server side but I am not able to add the same selected node text on client are. My code is mention below.
RadTreeNode node = rdTreeView.FindNodeByValue(nodeValue);
if (node != null)
{
    node.Checked = true;
}

Means When we select node using "OnClientEntryAdded" then node is checked and text belong to node will available to client area. But the same is not working when we do it programmatically

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Oct 2014, 11:21 AM
Hello,

I would suggest explicitly clicking (using JavaScript) on the input element next to the node text in order to make this node checked and append node's text value.

Once you have the node client-side object you can get its DOM element by using get_element() method and find an input element with class "rtChk". After you have a reference to this input element you can simply call click() method - this will check this check box and append the node's text to the checked items.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownTree
Asked by
Vijay
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or