DropDownTree Clear Option

2 posts, 0 answers
  1. Ludovic
    Ludovic avatar
    2 posts
    Member since:
    Mar 2017

    Posted 14 Mar Link to this post

    Hello

    I have a dropdowntree that is updated using a treelist.

    I wish when I check a line in my treelist check the corresponding value in the dropdowntree.
    But also uncheck the old value.

    I use this for

    dropdowntree.get_entries().clear()

    This method works the first time but if I check a value a second time it no longer works.

    I have that :
    Dropdowntree.get_entries().count() = 0

  2. Ludovic
    Ludovic avatar
    2 posts
    Member since:
    Mar 2017

    Posted 14 Mar Link to this post

    I find the solution

    var dropTree = document.getElementById('<%= RadDropDownTree.ClientID %>');
    dropTree.control.get_entries().clear(); 

Back to Top