Kendo ui 如何向我的剑道UI调度程序添加新的bool值?

Kendo ui 如何向我的剑道UI调度程序添加新的bool值?,kendo-ui,telerik,Kendo Ui,Telerik,我已经将该字段添加到数据源模式中,但编辑器上没有显示该字段 schema: { model: { id: "id", fields: { id: { from: "Id", type: "number" }, title: { from: "Title", validation: { required: true } },

我已经将该字段添加到数据源模式中,但编辑器上没有显示该字段

schema: {
    model: {
        id: "id",
        fields: {
            id: { from: "Id", type: "number" },
            title: { from: "Title", validation: { required: true } },
            start: { type: "datetime", from: "Start" },
            end: { type: "datetime", from: "End" },
            description: { from: "Description" },
            isAllDay: { from: "IsAllDay" },
            isFollowUp: { type: "boolean", from: "IsFollowUp" }, // This is the one I'm trying to add.
            patients: { from: "Patients", nullable: true, title: "Patients" },
            patientId: { from: "PatientId", type: "number" }
        }
    }
}
我排除了资源,因为我没有这个字段的资源,因为布尔值不需要数据源

我很困惑,为什么添加一个新的布尔值与内置的
isAllDay
boolean的工作方式不同,它只需要包含在模型模式中

我在调度程序上得到的资源实际上只是
患者
字段的列表,因此它与问题无关


如何让编辑器模板为
IsFollowUp
布尔字段构建新的复选框字段?

您需要将新字段添加到编辑器模板中。有关演示,请参阅所附的代码段


剑道UI片段
编辑会议

标题:

开始:

完:

后续行动: 真的 假的

$(“#调度程序”).kendoScheduler({ 日期:新日期(“2013/6/6”), 可编辑:{ 模板:$(“#编辑器”).html() }, 观点:[ {type:“day”} ], 数据源:[ { id:1, 开始日期:新日期(“2013/6/6 08:00 AM”), 完:新日期(“2013/6/6 09:00上午”), 标题:“采访”, 这是真的吗 }, { id:2, 开始日期:新日期(“2013/6/6上午10:00”), 结束:新日期(“2013/6/6上午11:00”), 标题:“测试”, isFollowUp:错误 } ] });
我从未使用过定义的编辑器模板,尽管如此,我的一些其他自定义字段仍然存在;这是怎么发生的?