wants to change image in radscheduler at runtime or in radscheduler databound event

2 posts, 0 answers
  1. Sunil
    Sunil avatar
    10 posts
    Member since:
    Sep 2011

    Posted 18 Oct 2011 Link to this post

    I wants to change image in radscheduler appointmnet template at runtime.
    Means in my data there are one column status which contains data like active, new, pending etc.
    Now i wants to display image as per status in above column.

    Or how to find image control in event RadScheduler_AppointmentDataBound(object sender, SchedulerEventArgs e) .

  2. Plamen
    Plamen avatar
    3079 posts

    Posted 20 Oct 2011 Link to this post

    Hi Sunil,

    You can try to use the AppointmentCreated as in the Templates demo by clearing the template and adding new one:
    protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
               if (e.Appointment.RecurrenceState == RecurrenceState.Master || e.Appointment.RecurrenceState == RecurrenceState.Occurrence)
                   Panel recurrenceStateDiv = new Panel();
                   recurrenceStateDiv.CssClass = "rsAptRecurrence";
                   e.Container.Controls.AddAt(0, recurrenceStateDiv);
        .... ....

    Hope this will help you.

    All the best,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top