Ektron WebCalendar:更改日视图的时间范围
使用Ektron 9.0 SP2 是否可以在日视图中更改Ektron WebCalendar的时间范围?显示的时间段为从上午8点到下午5点的小时数。我想知道是否可以更改范围,如果可以,如何应用此更改。我浏览了Ektron Web参考文档并浏览了WebCalendar属性,但没有找到任何有用的内容Ektron WebCalendar:更改日视图的时间范围,ektron,Ektron,使用Ektron 9.0 SP2 是否可以在日视图中更改Ektron WebCalendar的时间范围?显示的时间段为从上午8点到下午5点的小时数。我想知道是否可以更改范围,如果可以,如何应用此更改。我浏览了Ektron Web参考文档并浏览了WebCalendar属性,但没有找到任何有用的内容 提前感谢您的任何输入。我意识到我试图更改的是Ektron WebCalendar所构建的Telerik RadScheduler的属性。经过一些尝试和错误,我终于能够访问RadSchedular并编辑其
提前感谢您的任何输入。我意识到我试图更改的是Ektron WebCalendar所构建的Telerik RadScheduler的属性。经过一些尝试和错误,我终于能够访问RadSchedular并编辑其DayStartTime和DayEndTime属性,以更改WebCalendar的Day视图的小时范围 下面是我用来查找RadScheduler的代码
//Using a foreach loop through the WebCalendar as I am not sure if the order of its Controls property changes at all, but we want the UpdatePanel as that holds the RadScheduler.
foreach (Control control in uxWebCalendar.Controls)
{
if (control is UpdatePanel)
{
Control subControl = control;
Control subSubControl = subControl.Controls[0];
Telerik.Web.UI.RadScheduler radScheduler = subSubControl.Controls[0] as Telerik.Web.UI.RadScheduler;
//This results makes is to set the start time as 7am
TimeSpan timeStart = new TimeSpan(0, 7, 0, 0, 0);
//To show the 8pm slot, you have to end the time at 9pm
TimeSpan timeEnd = new TimeSpan(0, 21, 0, 0, 0);
radScheduler.DayStartTime = timeStart;
radScheduler.DayEndTime = timeEnd;
break;
}
}
我又看了一眼,意识到我试图改变的是Ektron WebCalendar控件使用的Telerik调度程序控件的属性。但是,我不知道如何在WebCalendar中访问Telerik调度程序的属性。如何从WebCalendar控件访问和编辑这些属性?