Selecting TreeView Combobox Leaves

2 posts, 0 answers
  1. Ed
    Ed avatar
    5 posts
    Member since:
    Oct 2008

    Posted 02 Nov 2008 Link to this post

    Hi,
    I am just getting started with these controls and one of the things I would like to do with the TreeView is to present it in a combobox very much like the example. The only twist is that I want to only allow the user to select leaves in the tree. No branches. Can this be done?
    Thanks ... Ed
  2. Ed
    Ed avatar
    5 posts
    Member since:
    Oct 2008

    Posted 02 Nov 2008 Link to this post

    Nevermind. Figured it out. 

     

    function nodeClicking(sender, args)
    {
        
    var comboBox = $find('RadComboBox1');
        var node = args.get_node()
        if (node.get_nodes().get_count() == 0)
        {
            comboBox.set_text(node.get_text());
            comboBox.set_value(node.get_value());
            comboBox.hideDropDown();
        }
    }

    Thanks ... Ed

     

     

Back to Top