Kendo ui Kendo UI计划程序绑定资源数据源中的大数组
我的项目理念:我正在项目中使用Kendo UI调度程序。我的想法是,我有大量的员工名单,我为每位员工分配了一天的工作时间,就像John一样,从2017年11月21日到2017年12月21日,工作时间为上午10点到下午4点 问题:当我将1400条员工列表记录的数组绑定到kendoscheduler中的资源数据库时。在调度程序上显示数据需要17秒以上。请在此处检查计划程序代码:Kendo ui Kendo UI计划程序绑定资源数据源中的大数组,kendo-ui,kendo-grid,kendo-scheduler,Kendo Ui,Kendo Grid,Kendo Scheduler,我的项目理念:我正在项目中使用Kendo UI调度程序。我的想法是,我有大量的员工名单,我为每位员工分配了一天的工作时间,就像John一样,从2017年11月21日到2017年12月21日,工作时间为上午10点到下午4点 问题:当我将1400条员工列表记录的数组绑定到kendoscheduler中的资源数据库时。在调度程序上显示数据需要17秒以上。请在此处检查计划程序代码: scheduler = $("#scheduler").kendoScheduler({
scheduler = $("#scheduler").kendoScheduler({
date: new Date(), // The current date of the scheduler
startTime: new Date(new Date().toLocaleDateString().replace(/:\d+ /, ' ') + " 8:00 AM"),
eventHeight: 30,
majorTick: 60,
columnWidth: 30,
height: 0,
editable: false,
views: [
{ type: "timeline", selected: d == null },
{ type: ThreeDayView, title: "Three day view", selected: d == 3, majorTick: 60 },
{ type: FiveDayView, title: "Five day view", selected: d == 5, majorTick: 180 },
{ type: "timelineWeek", title: "Week", selected: d == 7, majorTick: 300 },
],
dataSource: schData,
group: {
resources: ["Employees"],
orientation: "vertical"
},
resources: [
{
field: "employeeId",
name: "Employees",// The field of the Scheduler event which contains the resource identifier.
title: "Employees", // The label displayed in the Scheduler edit form for this resource.
dataSource: employeeData
}
]
});
这个employeeData是一个包含1400条员工记录的数组。因此,它挂起了我的页面,并用了17-18秒来绑定数据。这是我的屏幕的样子。
请帮助我或提出任何建议,以便我可以在阵列上绑定大量数据,而不会延迟或挂起。我希望我的调度程序在传递资源阵列中的大量数据时能够非常快速地加载