I use Drid editing.
After click button "save" and update , error happened.
See argument "data" in "data : function(data){ " by Firebug,
data is string object.
When first loading, the data is json object.
Server responses same text data, first loading and update's post method.
dataSource: {
transport: {
read: {
url:"getList.asp",
dataType: "json" ,
data : {
'entity': 'XXX'
}
},
update: {
url: "update.asp",
type : 'POST',
data : {
entity : 'XXX'
}
}
},
schema : {
data : function(data){
var new_data = [];
/* make data for grid from remote data */
return new_data;
},
model: {
id: "id",
fields: {
amp_name: { editable: false },
termStart: { editable: false },
volume: {
type: "number",
validation: {
max : { value : 1000, message : "XXX"}
}
}
}
},
toolbar: [
{ name: "save", text: "save" },
{ name: "cancel", text: "cancel" }
],
columns: [ {
field: "empName",
width: 90,
title: "社員"
} , {
field: "termStart",
width: 40,
title: "month"
} , {
field: "volume",
width: 35,
title: "target",
format: "{0:d}"
}
]
After click button "save" and update , error happened.
See argument "data" in "data : function(data){ " by Firebug,
data is string object.
When first loading, the data is json object.
Server responses same text data, first loading and update's post method.