标签: radscheduler

RadScheduler无法在MonthView上运行

我想根据他使用的视图向用户显示不同的内容.为此,我定制了AppointmentTemplate和AppointmentCreated事件.我还希望显示具有动态高度的约会,这意味着它们会扩展以填充内容,但在几天内它没有收缩.发生的事情是在MonthView上,只有标题显示在照片中:

这是DayView:照片

这是AppointmentCreated

    protected void sched_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) {

        using (DBFactory link = new DBFactory()) {
            int evtID = int.Parse(e.Appointment.ID.ToString());
            if (evtID == 0) {
                evtID = SessionManager.Instance.LastInsertedCalendarEventID;
            }
            CalendarEvent ce = link.GetCalendarEvent(evtID);

            Label lblHeader = (Label)e.Container.FindControl("lblHeader");
            Label lblDescription = (Label)e.Container.FindControl("lblDescription");
            Label lbldates = (Label)e.Container.FindControl("lbldates");
            Label lblParticipants = (Label)e.Container.FindControl("lblParticipants");
            Label lblLocale = (Label)e.Container.FindControl("lbllocale");


            switch (sched.SelectedView) {

                case SchedulerViewType.DayView: 
                    lblLocale.Text = string.Format("{0}", ce.EventLocation1.Location);
                    lblHeader.Text = string.Format("{0} - {1} ", ce.EventType1.EventTypeName, ce.Subject);
                    lblDescription.Text = string.Format("{0}", ce.Description);
                    lbldates.Text = …
Run Code Online (Sandbox Code Playgroud)

telerik radscheduler

5
推荐指数
1
解决办法
1645
查看次数

获取Telerik RadScheduler当前视图的日期范围

有没有办法在Telerik RadScheduler中获取当前视图的日期范围?SelectedView告诉我,我是在看月,周等,但我怎么知道我正在看哪个月/周等?无论是那个还是StartDate和EndDate都不错.

最好知道所以我只加载数据库中的相关约会.

asp.net telerik radscheduler

4
推荐指数
1
解决办法
4308
查看次数

标签 统计

radscheduler ×2

telerik ×2

asp.net ×1