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

    Hello,
    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) .


    Thanks
  2. Plamen
    Admin
    Plamen avatar
    3049 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)
    {
    e.Container.Controls.Clear();
    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.

    Greetings,
    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