jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList uncheckall is not working

This topic contains 2 replies, has 2 voices, and was last updated by  dchauhan 10 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • uncheckall is not working #58282

    dchauhan
    Participant

    I have an array of dropdown lists.

    $(“#mapFilterList” + ii).jqxDropDownList({
    source: jsonDropDownJsonStr,
    width: 400,
    theme: websiteTheme,
    height: ’15px’,
    checkboxes: true,
    selectedIndex: 1,
    placeHolder: “Please Select Filter Data:”,
    displayMember: ‘columnDisplayName’,
    valueMember: ‘columnFilterString’
    });

    I have a button where i want to clear the selection and uncheck all that was checked.
    $(“#mapFilterClear”).on(‘click’, function() {
    $(“#map-canvas”).html(pleaseWaitHTML);
    for (var jj = 0; jj < numberFilterDropDowns; jj++)
    {
    //$(“#mapFilterList” + jj).jqxDropDownList(‘uncheckAll’);
    $(“#mapFilterList” + jj).jqxDropDownList(‘clearSelection’);

    }
    });

    $(“#mapFilterList” + jj).jqxDropDownList(‘clearSelection’); works so that the selected ones are no longer in the title bar however when i click on the dropdown they are still selected. I tried the other code $(“#mapFilterList” + jj).jqxDropDownList(‘uncheckAll’); and that doesn’t work. It errors out.

    uncheckall is not working #58295

    Peter Stoev
    Keymaster

    Hi dchauhan,

    uncheckAll works correctly with jQWidgets 3.4 which is the current version. Example: http://jsfiddle.net/jqwidgets/799c7zah/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    uncheckall is not working #58327

    dchauhan
    Participant

    Thanks I updated my jqwidgets and it worked.

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

You must be logged in to reply to this topic.