or
var Sample = kendo.data.Model.define({ id: 'id', fields: { id: { type: 'string', nullable: true, editable: false }, .... }});...transport: { create: function(options) { $.ajax(...).done(options.success).fail(options.error); }},......transport: { create: function(options) { var that = this; $.ajax(...) .done(function(response) { that.get(null).accept(response); //<--------------------- this actually updates the item with id === null options.success(response); ) .fail(options.error); }},...jQuery("#workcalendar").kendoScheduler({ date: new Date(), startTime: new Date("2013/6/13 07:00 AM"), height: 600, views: [ "day", { type: "workWeek", selected: true }, "week", "month", "agenda" ], //timezone: "Etc/UTC", dataSource: { transport: { read: { type: "POST", url: "KPIGetData/DimData.aspx?SearchInput=schedulerevent", dataType: "json" }, update: { type: "POST", url: "KPIGetData/DimSavingData.aspx?SearchInput=schedulereventedit", dataType: "json" }, create: { type: "POST", url: "KPIGetData/DimData.aspx?SearchInput=schedulereventadd", dataType: "json" }, destroy: { type: "POST", url: "KPIGetData/DimData.aspx?SearchInput=schedulereventdel", dataType: "json" } , parameterMap: function(options, operation) { if (operation === "read") { var result ="&SearchValue="+CurrentUserID+"&StartTime="+SearchTimeStart+"&EndTime"+SearchTimeEnd; alert("hit:"+result); return kendo.stringify(result); } else if (operation !== "read" && options.models) { return {models: kendo.stringify(options.models)}; } } } , schema: { model: { id: "taskId", fields: { taskId: { from: "TaskID",type: "number"}, title: { from: "Title",defaultValue: "No title", validation: { required: true }}, start: { type: "date", from: "Start" }, end: { type: "date", from: "End" }, description: { from: "Description" }, recurrenceId: { from: "RecurrenceID" }, recurrenceRule: { from: "RecurrenceRule" }, recurrenceException: {from:"RecurrenceException"}, ownerId: {from: "OwnerID", defaultValue: 1}, isAllDay: {type: "boolean",from:"IsAllDay"} } } }, requestEnd: function(e) { var response = e.response; alert("here:"+response +"|"+JSON.stringify(response)); }, error: function(e) { alert(e.status); } } });string test1 = "[{\"TaskID123\":\"885\"}]"; Response.Clear(); Response.ContentType = "application/json"; Response.Charset = "UTF-8"; Response.Write(test1); Response.End(); DataTable dt = null; DataRow[] drdtv = null; using (System.Data.SqlClient.SqlConnection cn = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["HROK"].ConnectionString)) { cn.Open(); string sql = "select top 1 TableID from OAOrderTaskFactBill"; SqlCommand cmd = new SqlCommand(sql, cn); SqlClient.SqlDataAdapter ada =new SqlClient.SqlDataAdapter(); ada.SelectCommand = cmd; ada.Fill(dt);} string test2 = "[{" + "\"" + "TaskID" + "\"" + ":" + "\"" + dt.Rows[0]["TableID"].ToString() + "\"" + "}]"; Response.Clear(); Response.ContentType = "application/json";Response.Charset = "UTF-8";Response.Write(test2);Response.End();