var options = {
source : {
datafields : [ {
name : 'customerType',
type : 'string'
}],
autodisplay : true,
datatype : "json",
url : '<s:url action="load_loadData" namespace="/test" />'
},
jqxGrid : {
columns : [ {
text : '<s:text name="Attendee Type" />',
datafield : 'customerType'
}]
}
};
$("#gridTable").JqxGrid(options);
When jqxGrid get data from json it return value 1 for ‘customerType’.
I want to edit cell with new value (String)
$('#gridTable').jqxGrid('setcellvalue', 0,"customerType", "Test");}
but browser response ‘undefined’.
so i try to edit with int value.
$('#gridTable').jqxGrid('setcellvalue', 0,"customerType", "123");}
It’s work but i want to edit with string value.