This is a migrated thread and some comments may be shown as answers.

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

1 Answer 25 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 18 Oct 2011, 01:41 PM
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

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 20 Oct 2011, 04:34 PM
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
Tags
Scheduler
Asked by
Sunil
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or