jQWidgets Forums

jQuery UI Widgets Forums Grid default grid is check all

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  joe cx 9 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • default grid is check all #74391

    joe cx
    Participant

    Hi All,

    How can i make a grid is check all in the begining, i’ve used selectionmode: ‘checkbox’ but the default is unchecked.

    Thanks for any response.

    default grid is check all #74405

    Mariya
    Participant

    Hi joe cx,

    It depends on your data values of the checkbox column. If they are all true or 1, the checkboxes will be all checked. The supported values are 0,1,true and false.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    default grid is check all #74476

    joe cx
    Participant

    Hi Mariya,

    In my grid, i’ve used selectionmode: ‘checkbox’ and jqxgrid automatically add aditional column with checkbox in the first column like this example .

    can i set the default all checkbox is checked when the grid first time loaded ?

    regards

    joe

    default grid is check all #74489

    Mariya
    Participant

    Hi joe,

    Please take a look at the provided example at:http://jsfiddle.net/66t6y18d/
    I hope it would be helpful in you case.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    default grid is check all #74504

    joe cx
    Participant

    Hi Mariya,

    Thanks a lot, ive used bindingcomplete and call selectallrows like you suggested. Here mycode :

    $(“#jqxgrid”).on(“bindingcomplete”, function (event) {
    $(‘#jqxgrid’).jqxGrid(‘selectallrows’);
    });

    Best regards

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

You must be logged in to reply to this topic.