or
$("#grid").kendoGrid({ dataSource: maxSource, toolbar: ["create"], columns: [ { field: "MaximoItemNumber", title: "Maximo Item #" }, "KVA", { field: "PrimaryVoltage", title: "Primary Voltage" }, { field: "SecondaryVoltage", title: "Secondary Voltage" }, { field: "OilType", title: "Oil Type" }, "Phase", { command: ["edit", "destroy"], title: " "} ], editable: "inline"});var maxSource = new kendo.data.DataSource({ transport: { create: { url: webServiceBaseUrl + "createMaxItem", contentType: 'application/json; charset=utf-8', type: "POST", dataType: "json" }, read: { url: webServiceBaseUrl + "getMaxItems", contentType: 'application/json; charset=utf-8', type: "POST", dataType: "json" }, update: { url: webServiceBaseUrl + "updateMaxItem", contentType: 'application/json; charset=utf-8', type: "POST", dataType: "json" }, destroy: { url: webServiceBaseUrl + "deleteMaxItem", contentType: 'application/json; charset=utf-8', type: "POST", dataType: "json" }, parameterMap: function(data, operation) { if (operation != "read") { return JSON.stringify( { stuff: data.models } ); } } }, schema: { data: "d", id: "id", fields: { id: { editable: false, nullable: true }, MaximoItemNumber: { validation: { required: true} }, KVA: { type: "number" }, PrimaryVoltage: { type: "string" }, SecondaryVoltage: { type: "string" }, OilType: { type: "string" }, Phase: { type: "number" }, DateAdded: { type: "datetime" }, AddedBy: { type: "string" } } }});<body> <div id="mygrid"></div> <script> var mydata = [ { id: 1, name: "John" }, { id: 2, name: "Stephen" }, { id: 3, name: "Lisa" } ]; var myDS = new kendo.data.DataSource({ data: mydata }); $(document).ready(function() { //Init Grid var gridMagXtrReturnLines = $("#mygrid").kendoGrid({ editable: "inline", navigatable: true, autoBind: false, scrollable: false, dataSource: myDS, columns: [ { field: "id", title: "ID", width: 70 }, { field: "name", title: "Namn", width: 200 }, { command: ["edit"], title: " " } ] }); myDS.read(); }); </script></body>HI
I use kendo grid. I want when I edit a row and change value of drop down , show new value in column
But with this code I want
change and update database but do not show new value in grid and I should refresh page.
My English is n't good , I'm sorry if my writting is bad. :D