jQWidgets Forums
jQuery UI Widgets › Forums › Grid › column type checkbox
Tagged: checkbox, grid, jquery grid
This topic contains 2 replies, has 2 voices, and was last updated by arkgroup 9 years, 6 months ago.
-
Authorcolumn type checkbox Posts
-
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' } ] });
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 StoevjQWidgets Team
http://www.jqwidgets.comSorry, I was using wrong datafield name for checkbox column.
Thanks
-
AuthorPosts
You must be logged in to reply to this topic.