jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox checkAll – checkIndex

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • checkAll – checkIndex #20702

    lineker
    Participant

    Hi,

    I have a combobox. I am applying methods checkAll, checkIndex but there is no effect.
    For example, a part of code is below

    $(“#pcategory”).jqxComboBox({source:dataSourceFilterPCat, checkboxes: true, displayMember:”Code”, valueMember:”CategoryID”, width:200} );

    $(“#pcategory”).jqxComboBox(‘checkIndex’, 0);

    I searched at forum but could not find reason.
    Is there a knwon reason of this behaviour?

    checkAll – checkIndex #20704

    lineker
    Participant

    Hi,

    When I used method and bindingComplete as follow, it workrf


    $(“#pcategory”).on(‘bindingComplete’, function (event) {
    $(“#pcategory”).jqxComboBox(‘checkAll’);
    });

    But how? At demo page, it works although it is not used at bindingComplete!!

    checkAll – checkIndex #20705

    lineker
    Participant

    Hi,

    I found reason. I am using json as source datatype but array is used demo page!

    checkAll – checkIndex #20764

    Peter Stoev
    Keymaster

    Hi,

    I suppose that the reason is the when the “checkAll” method is called, the data is still not loaded. That is the reason why “bindingComplete” is required in that scenario.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.