Not able to add text in Client Area ie DropDown

2 posts, 0 answers
  1. Vijay
    Vijay avatar
    4 posts
    Member since:
    Sep 2014

    Posted 30 Sep 2014 Link to this post

    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
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1968 posts

    Posted 02 Oct 2014 Link to this post


    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.

    Boyan Dimitrov

    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.

Back to Top