jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: default grid is check all 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

    in reply to: default grid is check all 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


    joe cx
    Participant

    Hi All,

    Its works case closed :D, i’m so sorry for my bad typo 🙂


    joe cx
    Participant

    Hi All,

    Just want to know this feature is available in the latest version or not, i just trying to set the selected: true, but it didnt work. any suggestion ?

    Best regard’s

    in reply to: How to get row index problem How to get row index problem #65957

    joe cx
    Participant

    Hi Peter,

    Thank you for the quick reply. I’ve read the documentation & i changed my code like this :

    `var selectedrowindex = -1;

    $(“#jqxgrid”).on(‘cellselect’, function (event) {

    selectedrowindex = event.args.rowindex;
    });

    $(“#removebutton”).on(‘click’, function () {
    var rowscount = $(“#jqxgrid”).jqxGrid(‘getdatainformation’).rowscount;
    if (selectedrowindex >= 0 && selectedrowindex < rowscount) {
    var id = $(“#jqxgrid”).jqxGrid(‘getrowid’, selectedrowindex);
    var commit = $(“#jqxgrid”).jqxGrid(‘deleterow’, id);
    }
    });`

    Am i doing this right ? Thanks again peter.

    Best regards
    Joe

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