jQWidgets Forums

jQuery UI Widgets Forums Grid column type checkbox

This topic contains 2 replies, has 2 voices, and was last updated by  arkgroup 9 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • column type checkbox #79336

    arkgroup
    Participant

    I am using grid with checkbox column (jQWidgets v3.9.0). Data coming from SQL and data field is Boolean and all rows data set to false. Grid shows uncheck check box only for first row. All other rows are black box. When I do scroll, all check boxes become unchecked.

      var source =
                {
                    //  datatype: "local",
                    datatype: "json",
                    datafields: [
                                    { name: 'Check_1', type: 'bool' },
                                    { name: 'COMMOM_NAME', type: 'string' },
                                    { name: 'Item', type: 'string' },
                                    { name: 'UOM', type: 'string' },
                                    { name: 'Description', type: 'string' },
                                    { name: 'OPT_Qty', type: 'number' },
                                     { name: 'MAX_Qty', type: 'number' }
                    ],
                    localdata: data_audit_grid
                };
                 $("#jqxGridAudit").jqxGrid(
                                {
                                    width: 880,
                                    height: 550,
                                    source: source,
                                    columns: [
                                     { text: 'COMMON NAME', datafield: 'COMMOM_NAME', cellsalign: 'left', align: 'center', width: 250 },
                                     { text: 'Item', datafield: 'Item', align: 'center', width: 70 },
                                     { text: 'UOM', datafield: 'UOM', cellsalign: 'right', align: 'center', cellsalign: 'right', width: 50 },
                                     { text: 'Description', datafield: 'Description', cellsalign: 'right', align: 'center', cellsalign: 'left', width: 250 },
                                     { text: 'OPT Qty', datafield: 'OPT_Qty', cellsalign: 'right', align: 'center', cellsalign: 'right', width: 70 },
                                     { text: 'MAX Qty', datafield: 'MAX_Qty', cellsalign: 'right', align: 'center', cellsalign: 'right', width: 70 },
                                     { text: 'Check', datafield: 'Check_1', width: 50, columntype: 'checkbox' }
    
                                    ]
                                });
    
    column type checkbox #79338

    Peter Stoev
    Keymaster

    Hi arkgroup,

    The current version is 3.9.1 so I suggest you to test your scenario with it and if you experience the issue, then write again. There is no such behavior on our website demos which have CheckBox columns, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    column type checkbox #79340

    arkgroup
    Participant

    Sorry, I was using wrong datafield name for checkbox column.

    Thanks

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

You must be logged in to reply to this topic.