jQWidgets Forums
jQuery UI Widgets › Forums › Grid › can't always click checkbox
Tagged: grid checkbox
This topic contains 3 replies, has 2 voices, and was last updated by shawn 9 years, 3 months ago.
-
Author
-
I have 2 checkboxes in my grid.
Sometimes I can click them on/off with no problem, then suddenly I can no longer click them.
If I hover my mouse, the cursor doesn’t even change to the pointer.
The checkboxes load correctly as far as which ones are checked/unchecked.
Why?My json data is generated dynamically, and looks like this
[{"ID":"1","Headline":"test headline #1","NewsScroll":1,"Active":1},{"ID":"2","Headline":"test hl 2","NewsScroll":0,"Active":1}]
my grid init looks like this
var source = { datatype: "json", datafields: [ { name: 'ID', type: 'string' }, { name: 'Headline', type: 'string' }, { name: 'Active', type: 'bool' }, { name: 'NewsScroll', type: 'bool' } ], localdata: jc }; var dataAdapter = new $.jqx.dataAdapter(source); $("#newsListGrid").jqxGrid( { width: "80%", source: dataAdapter, editable: true, columns: [ { text: 'ID', datafield: 'ID',width: "8%",editable: false}, { text: 'Headline', datafield: 'Headline',width: "50%",editable: true}, { text: 'Active', datafield: 'Active',width: "15%", columntype: "checkbox",editable: true}, { text: 'News Scroll', datafield: 'NewsScroll',width: "15%", columntype: "checkbox",editable: true}, { text: 'Edit', datafield: 'edit', width: "12%", columntype: 'button', cellsrenderer: function () { return "Edit"; }, buttonclick: function (row) { var dataRecord = $("#newsListGrid").jqxGrid('getrowdata', row); //clog(dataRecord.ID); } } ] });
Hi shawn,
We cannot reproduce this with jQWidgets 4.1.0. If necessary, update your version to it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI updated to the latest version and that fixed the problem.
Thanks -
AuthorPosts
You must be logged in to reply to this topic.