this code is part of my last project,it can be execute right.
in next project ,i write like that,
here is the problem,it has no error or warning in chrome console,but the edit button shows "undefined",and while i edit status,it just doesn't work,no data send to server.
$(document) .ready( function() { var dataSource = new kendo.data.DataSource( { transport : { read : { url : "${pageContext.request.contextPath}/queryAllBusLineServlet", dataType : "json" }, update : { url : "${pageContext.request.contextPath}/updateBusLineServlet" } }, batch : true, schema : { model : { id : "id", fields : { id : { editable : false }, name : { editable : true } } } } }); $("#grid").kendoGrid( { sortable : true, dataSource : dataSource, pageable : true, height : 600, columns : [ { field : "id", title : "id", editable : false }, { field : "name", title : "name" }, { command : [ "edit" ] } ], editable : "popup" }); });in next project ,i write like that,
var url = "${pageContext.request.contextPath}/querySamplesServlet?status=" + status; var dataSource = new kendo.data.DataSource( { transport : { read : { url : url, dataType : "json" }, update : { url : "${pageContext.request.contextPath}/updateSampleServlet" } }, batch : true, schema : { model : { id : "id", fields : { id : { editable : false }, name : { editable : false }, status : { editable : true } } } } }); $("#samples").kendoGrid( { sortable : true, dataSource : dataSource, pageable : true, height : 600, columns : [ { field : "id", title : "id", editable : false }, { field : "name", title : "name", editable : false }, { field : "status", title : "status" }, { command : [ "edit" ] } ], editable : "popup" });here is the problem,it has no error or warning in chrome console,but the edit button shows "undefined",and while i edit status,it just doesn't work,no data send to server.