jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Editable/filterable grid with checkbox throws an error when editing
Tagged: grid checkbox, jqxgrid
This topic contains 3 replies, has 2 voices, and was last updated by 5203013123036357125256 12 years, 6 months ago.
-
Author
-
November 9, 2012 at 10:22 am Editable/filterable grid with checkbox throws an error when editing #10779
Hi!
I have an editable/filterable grid with a checkbox column called ‘Available’ (script code below).
I can change the checkbox values if I do not have any filter input in the filterrow, but if I enter anything in my filterrow and then try to change a checkbox value in the resulting grid I get an jqxgrid.js error:jqxgrid.js line 7, character 96702
SCRIPT5007: Can not set value for the property Available: object is null or undefinedHow can I fix or work around this?
Best regards,
Per Eivind Jenssen,
Developer, Oppad as==========================
var source = {
datatype: “json”,
datafields: [
{ name: ‘Productname’ },
{ name: ‘Available’ /*, type: ‘bool’*/ }
],
async: false,
cache: false,
url: ‘@Url.Content(“Default1/GetData”)’,
filter: function () {
$(“#jqxgrid”).jqxGrid(‘updatebounddata’);
},
sort: function() {
$(“#jqxgrid”).jqxGrid(‘updatebounddata’);
}
};var dataAdapter = new $.jqx.dataAdapter(source);
$(“#jqxgrid”).jqxGrid({
source: dataAdapter,
editable: true,
sortable: true,
filterable: true,
showfilterrow: true,
columns: [
{
text: “Productname”,
datafield: “Productname”,
filtertype: ‘textbox’,
filtercondition: ‘starts_with’
},
{
text: “Available”,
datafield: “Available”,
columntype: ‘checkbox’,
filterable: false
}
]
});==========================
November 9, 2012 at 11:56 am Editable/filterable grid with checkbox throws an error when editing #10780Hi JAG7070,
Could you provide a sample data that you use for binding the Grid so we can test the specific scenario?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comNovember 9, 2012 at 12:42 pm Editable/filterable grid with checkbox throws an error when editing #10790This is the readout from Internet Explorer debug window:
[{“Productname”:”Nexus 7″,”Available”:false},{“Productname”:”iPad mini”,”Available”:false},{“Productname”:”Washingboard”,”Available”:true}]Best regards,
Per Eivind JenssenNovember 14, 2012 at 2:01 pm Editable/filterable grid with checkbox throws an error when editing #11005Update: This has been confirmed by jQWidgets Team to be an issue that will be resolved in the next release.
-
AuthorPosts
You must be logged in to reply to this topic.