protected void scdTaskSchedule_OnDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)
        {
            try
            {
                e.Appointment.AllowDelete = false;
                e.Appointment.AllowEdit   = true;
                e.Appointment.Description = StringHtmlExtensions.TruncateHtml(e.Appointment.Description, 10000, "...");
                e.Appointment.Description = WebSiteCommon.StripHTML(e.Appointment.Description);

                if (e.Appointment.End.Date >= e.Appointment.Start.Date && e.Appointment.Start.Date < SessionManager.UserContext.LocalTime.Date)
                {
                    // past due active link
                    e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml("#ffe6e6");  // light pink
                }
                else if (string.IsNullOrEmpty(e.Appointment.ID.ToString()))
                {
                    // inactive link
                    e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml("#F0FFFF");   // azure
                }
                else
                {
                    // active link
                    e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml("#FFFFE0");   // yellow
                }

                e.Appointment.End = e.Appointment.Start.AddHours(2);
            }
            catch
            {
                ;
            }
        }
        protected void scdTaskSchedule_OnDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)
        {
            e.Appointment.AllowDelete = false;
            e.Appointment.AllowEdit   = true;
            e.Appointment.Description = StringHtmlExtensions.TruncateHtml(e.Appointment.Description, 1000, "...");
            e.Appointment.Description = WebSiteCommon.StripHTML(e.Appointment.Description);

            if (e.Appointment.End.Date > e.Appointment.Start.Date && e.Appointment.Start.Date < DateTime.Now.Date)
            {
                e.Appointment.BackColor = System.Drawing.ColorTranslator.FromHtml("#ffe6e6");  // light yellow  #ffd413  #ffc013
            }
            e.Appointment.End = e.Appointment.Start.AddHours(2);
        }
示例#3
0
 protected void RadScheduler1_AppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e)
 {
     System.Diagnostics.Debug.Write(e.ToString());
 }
示例#4
0
 protected void RadScheduler1_AppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e)
 {
     Console.Write(e.ToString());
 }