Set Selected Text in RadDropDownTree JavaScript

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

    Posted 29 Sep 2014 Link to this post

    Hi All,

    My question for client side code only using JavaScript.
    I have a RadDropDownTree in my Form. In that DropDown I have some some data.
        Middle Central
    above mention is same data.

    Now What I want is when User Select Chicago then Select text in client area of that dropdown should be anything like 'ABCD' or anything. I just want to set the
    Selected text of that DropDownTree. I tried below mention code but is not working, In my RadDropDownTree, it still showing emptymessage.

    var combo = $find("<%= RadDropDownLocations.ClientID %>");
    combo._selectedText = "Davolio" + ";" + "Leverling";

    Can someone guide me how can I set the text in DropDownTree
     Let me know in case of any more information

  2. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Oct 2014 Link to this post

    Hi Vijay,

    Try to handle the OnClientEntryAdded event: 

    <telerik:RadDropDownTree runat="server" ID="ddt" OnClientEntryAdded="OnClientEntryAdded">
        function OnClientEntryAdded(sender, args) {
            setTimeout(function () {
            }, 10);

    Hristo Valyavicharski

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top