如何更改KendoUI Fields值

时间:2016-04-08 22:15:42

标签: javascript ajax kendo-ui

似乎kendoUI调度程序无法正确显示本地时间,除非这样的日期格式

      2016/03/07T08:30:00.000Z

json

[{
  "iGuid": 1,
  "taskId": 1,
  "OwnerID": "1",
  "StartTimezone": "Etc/UTC",
  "EndTimezone": "Etc/UTC",
  "Description": "A",
  "RecurrenceID": null,
  "RecurrenceRule": null,
  "RecurrenceException": null,
  "Subcode": "A",
  "Start": "2016-03-07 08:30:00",
  "End": "2016-03-07 12:30:00",
  "Title": "A",
  "IsAllDay": false
}]

调度程序架构

  schema: {
              model: {
                  id: "taskId",
                  fields: {
                       iGuid : {from : "iGuid"},
                       taskId: { from: "taskId" }, 
                       ownerId: { from: "OwnerID", defaultValue: 1 },                                  
                       startTimezone: { from: "StartTimezone" },
                       endTimezone: { from: "EndTimezone" },
                       description: { from: "Description" },
                       recurrenceId: { from: "RecurrenceID" },
                       recurrenceRule: { from: "RecurrenceRule" },
                       recurrenceException: { from: "RecurrenceException" },
                       start: { type: "date", from: "Start" },
                       end: { type: "date", from: "End" },
                    },

                    }
                }
            }

它有什么方法可以转换,它在vb中不起作用吗?

(我在vb .by中使用"替换","修剪"等等进行转换)

因为我想学习其他前端方法。

感谢您的帮助。

0 个答案:

没有答案