I have a "cell editable grid" with save a button on top of the header, when cell changed will triger save action, here is what I am experiencing
the grid able to update itself when the field is clean
{ field: "Inventory", title: "Inv Jan", width: "80px"}
when add template to the editable fields, then error will popup - "NetworkError: 500 Internal Server Error - http://localhost:9999/Inventory/UpdInventoryData"
{ field: "Inventory", title: "Inv Jan", width: "80px", template: "<div style='color:blue;'>#= Inventory # </div>" },
thanks
7 Answers, 1 is accepted
0
Hello Kelin,
The http status code claims that there is some server error. You can find a working example of template column and editing bellow:
Greetings,
Nikolay Rusev
the Telerik team
The http status code claims that there is some server error. You can find a working example of template column and editing bellow:
Greetings,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RMC
Top achievements
Rank 1
answered on 25 Jan 2012, 12:18 AM
It fails with Date Fields, please could you check it and reply, thanks
0
Hello Ramon,
Can you please elaborate what exactly fails with date fields?
Regards,
Nikolay Rusev
the Telerik team
Can you please elaborate what exactly fails with date fields?
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RMC
Top achievements
Rank 1
answered on 25 Jan 2012, 05:08 PM
the 'edit' works with numbers and strings but if I try with date fields, it does not send the field in the Query String parameters:
...
update: {
url: "../components/icasadmin/icinvoices.cfc?method=edit&returnformat=json",
dataType: "json"
},
},
schema: {
model:{
id: "iciid",
fields: {
iciName: { type: "string", editable: false },
...
iciDate: {type: "date", editable: true}
}
}
}
....
{ field: "iciDate", title: "Invoice Date", template: "#= kendo.toString(iciDate, 'MMM/dd/yyyy')#", width: '80px'},
a partial copy of the 'Headers' in Chrome:
X-Requested-With:XMLHttpRequest
Query String Parametersview URL encoded
method:edit
returnformat:json
ici_clid:100
icistatus:1
iciid:787
...
icinotas:
iciconcepto: job invoice
the iciDate field is missing, it does not work using template and without template.
thanks
...
update: {
url: "../components/icasadmin/icinvoices.cfc?method=edit&returnformat=json",
dataType: "json"
},
},
schema: {
model:{
id: "iciid",
fields: {
iciName: { type: "string", editable: false },
...
iciDate: {type: "date", editable: true}
}
}
}
....
{ field: "iciDate", title: "Invoice Date", template: "#= kendo.toString(iciDate, 'MMM/dd/yyyy')#", width: '80px'},
a partial copy of the 'Headers' in Chrome:
X-Requested-With:XMLHttpRequest
Query String Parametersview URL encoded
method:edit
returnformat:json
ici_clid:100
icistatus:1
iciid:787
...
icinotas:
iciconcepto: job invoice
the iciDate field is missing, it does not work using template and without template.
thanks
0
Hello Ramon,
I am afraid that we cannot determine what might cause such behavior. Can you please create us sample app where this behavior can be observed? Thus we'll be able to assist you further.
Regards,
Nikolay Rusev
the Telerik team
I am afraid that we cannot determine what might cause such behavior. Can you please create us sample app where this behavior can be observed? Thus we'll be able to assist you further.
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ian
Top achievements
Rank 1
answered on 03 Feb 2012, 05:16 PM
Hello,
I am getting a similar behavior with dates in my grid.
Grid config
...
...
I invoke grid.saveChanges() from a custom toolbar action.
There is a get request (as an aside, why not a post for an update) sent with the following when trying to set the value of a date in the grid.
...?Id=19&DateOffline=&DateOnline%5Bformat%5D=%5Bobject+DOMWindow%5D
Any help would be appreciated.
I am getting a similar behavior with dates in my grid.
Grid config
...
toolbar: [ { text: "Save Changes", className: "save-metrics", imageClass: "k-add" } // "create", "save", "cancel" ]
columns: [ { field: 'Name', title: 'Metric Name' }, { field: 'DateOnline', title: 'Activation Date', format: '{0:MMMM d yyyy}' }, { field: 'DateOffline', title: 'De-Activation Date', format: '{0:MMMM d yyyy}' } ... ]
...
I invoke grid.saveChanges() from a custom toolbar action.
There is a get request (as an aside, why not a post for an update) sent with the following when trying to set the value of a date in the grid.
...?Id=19&DateOffline=&DateOnline%5Bformat%5D=%5Bobject+DOMWindow%5D
Any help would be appreciated.
0
Hello Ian,
Can you please show us your DataSource configuration or better attach runnable app demonstrating this behavior?
Regards,
Nikolay Rusev
the Telerik team
Can you please show us your DataSource configuration or better attach runnable app demonstrating this behavior?
Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!