多个资源在ipad中不起作用 - Kendo Scheduler

时间:2018-04-13 07:50:19

标签: ipad kendo-ui scheduler kendo-scheduler

我在下面编写代码,为多个与会者创建了一个约会,并且工作得很好。但对于iPad,它无法将选定的与会者ID提交给模型。我不明白这里有什么问题?

enter code here @(Html.Kendo().Scheduler<AppointmentSummaryModel>()
.Name("scheduler")
.Mobile(MobileMode.Auto)
.Date(DateTime.Today)
.Timezone("Etc/UTC")
.Height(700)
.DataSource(ds => ds
    .Read(read => read.Action("Schedules_Read", "Scheduler"))
    .Create(create => create.Action("Schedules_Create", "Scheduler"))
    .Update(update => update.Action("Schedules_Update", "Scheduler"))
    .Destroy(destroy => destroy.Action("Schedules_Destroy", "Scheduler"))
    .Model(m =>
    {
        m.Id("Id");
        m.Field(f => f.OwnerID);
    })
)
.Views(views =>
{
    views.WeekView(s => s.Selected(true));
})
.Resources(resource =>
{
    resource.Add(m => m.OwnerID)
        .Title("Owner")
        .DataTextField("Text")
        .DataValueField("Value")
        .DataColorField("Color")
        .Multiple(true)
        .BindTo(new[] {
            new { Text = "Alex", Value = 1, Color = "#f8a398" } ,
            new { Text = "Bob", Value = 2, Color = "#51a0ed" } ,
            new { Text = "Charlie", Value = 3, Color = "#56ca85" }
        });
})
)

结果的屏幕截图

Console errors when I select attendees name

image 1

Other than attendees everything is available in e.event

image 2

输出需要将约会者姓名保存在约会中,而该约会现在没有发生

0 个答案:

没有答案