jQuery UI Widgets Forums Lists ListBox Select one item only on Listbox (checkboxes: true)

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 3 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • ventra
    Participant

    I have a listbox which has the property of checkboxes set to true. My goal based on the program I am trying to create is simple: select one item only (check the current selected item and uncheck the rest).

    $(“#jqxListBox”).on(‘checkChange’, function (event) {
    $(this).jqxListBox(‘uncheckAll’);
    $(this).jqxListBox(‘checkItem’, event.args.item.element.innerText);
    }

    The code above is causing error for “Maximum call stack size” in my end. It works though. Is there an alternative for this?

    Note: My code using this guide: http://jsfiddle.net/84h15rb3/ is working. Just wonder why the code above has errors. It seems faster with less coding.


    Hristo
    Participant

    Hello ventra,

    Could you clarify it, how to reproduce the issue?
    I looked into the example, its code is ok and it seems to work fine.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.