jQuery UI Widgets Forums Grid Enable select all checkbox

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Enable select all checkbox #121158

    khawanz
    Participant

    I have a case that i must disable jqxgrid when user close group for some field. Here the code,

    options.dataAdapter = new $.jqx.dataAdapter(source, {
    beforeSend: function() {
    admin.loading.show();
    admin.userList.jqxGrid({ disabled: true});
    },
    loadComplete: function() {
    admin.userList.jqxGrid({ disabled: false});
    admin.loading.hide();
    }
    });

    But i have another issue, select all checkbox become disable (selection mode: checkbox). How can i enable the select all checkbox?

    Enable select all checkbox #121166

    ivanpeevski
    Participant

    Hi khawanz,

    The disabled property disables the entire Grid, including the checkboxes.
    However it is possible to disable only specific rows, please have a look at the demo here: https://jsfiddle.net/evbm5p64/7/

    By changing the elements in the rowsToDisable array, you can disable rows on specific indexes.

    If you have any other questions, please do not hesitate to contact us again.
    Best Regards,
    Ivan Peevski
    jQWidgets team
    https://www.jqwidgets.com

    Enable select all checkbox #121197

    khawanz
    Participant

    Hi Ivanpeevski,

    Thank you for your reply.

    Your solution is for specific row, but if i want to disable the header row, how can i do that?

    Enable select all checkbox #121204

    ivanpeevski
    Participant

    Hi khawanz,

    Thank you for the additional information. In this case, please have a look at this fiddle: https://jsfiddle.net/vqmy8ksd/2/
    It applies custom CSS class that disables the jqxGrid content and headers, but leaves the Select All Checkbox enabled.

    I hope this will be of help!
    Best Regards,
    Ivan Peevski
    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.