jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList Tree dropdownlist

This topic contains 4 replies, has 4 voices, and was last updated by  Peter Stoev 11 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Tree dropdownlist #3447

    Black Moon
    Member

    Hi All!

    Does jqxWidgets has a control – Dropdownlist with treeview items?
    Or how it can be implemented?

    Tree dropdownlist #3484

    Peter Stoev
    Keymaster

    Hi Black Moon,

    Unfortunately, we don’t have such widget. In the upcoming release, we’ll add a new widget that will allow this to be achieved.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Tree dropdownlist #7717

    Ray Choe
    Participant

     

     

    // load the selected tree item when the page is reloaded.

     

     

    var selectedItem = $.jqx.cookie.cookie(“jqxTree”);

    alert(selectedItem);

     

     

    if(selectedItem) {var items = $(“#jqxTree”).jqxTree(‘getItems’);

    $.each(items,function() {

     

     

     

    //if (this.label == selectedItem) {

     

     

    if (selectedItem.indexOf(this.label) > 0) {

     

     

     

     

     

     

    $(‘#jqxTree’).jqxTree(‘selectItem’, this.element);

    $(‘#jqxTree’).jqxTree(‘checked’, true, this.element);

    alert(this.value);

     

     

     

    //return false;

     

     

    var checkbox = $(this);

    checkbox.attr(‘checked’, true);

    $(this).attr(“checked”, true);

    }

     

    });

     

    }

     

     

    Tree dropdownlist #32885

    Andy
    Participant

    Pete,

    The API documentation is my first point of call and have read the api documentation very carefully. The ‘GetItems’ method is available but seems to me a very inefficient way of getting children when I have to parse through the complete tree to only expand the items of interest, unless I’m missing something…. This, I’m guessing would be problematic for larger trees.

    Just an observation.

    Ta

    Tree dropdownlist #32901

    Peter Stoev
    Keymaster

    Hi Ta,

    Eeach item returned by the “getItems” array has “label”, “value” and “element” members which identify the Item. I do not think that should be problematic.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.