我想在 DHTMLX 控件事件调度程序中的文本/背景上显示不同的颜色。所以下面是我的代码,我只是传递虚拟数据-
public ActionResult Index()
{
var scheduler = new DHXScheduler(this);
scheduler.Skin = DHXScheduler.Skins.Flat;
scheduler.Config.multi_day = true;
scheduler.InitialDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
scheduler.LoadData = true;
scheduler.EnableDataprocessor = true;
return View(scheduler);
}
public ContentResult Data()
{
var data = new SchedulerAjaxData(
new List<CalendarEvent>{
new CalendarEvent{
id = 1,
text = "Sample Event",
start_date = new DateTime(2017, 04, 09, 3, 00, 00),
end_date = new DateTime(2017, 04, 09, 4, 00, 00)
},
new CalendarEvent{
id = 2,
text = "Event Anniversery",
start_date = new DateTime(2017, 04, 08, 6, 00, 00),
end_date = new DateTime(2017, 04, 08, 8, 00, 00)
},
new CalendarEvent{
id = 3,
text = "Third Event",
start_date = new DateTime(2017, 04, 07, 8, 00, 00),
end_date = new DateTime(2017, 04, 07, 9, 00, 00)
}
}
);
return (ContentResult)data;
}
请帮我。我在谷歌上没有找到任何结果。