4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 02 Sep 2013, 01:27 PM
Hi Mattia,
You can attach the AppointmentDataBound server side event and try the following C# code.
C#:
Thanks,
Shinu.
You can attach the AppointmentDataBound server side event and try the following C# code.
C#:
protected
void
RadScheduler1_AppointmentDataBound(
object
sender, Telerik.Web.UI.SchedulerEventArgs e)
{
if
(e.Appointment.Resources.GetResourceByType(
"Product"
) !=
null
)
{
switch
(e.Appointment.Resources.GetResourceByType(
"Product"
).Text)
{
case
"Mobile"
:
e.Appointment.CssClass =
"blue-style"
;
break
;
case
"Laptop"
:
e.Appointment.CssClass =
"green-style"
;
break
;
default
:
break
;
}
}
}
Thanks,
Shinu.
0
TT
Top achievements
Rank 1
answered on 02 Sep 2013, 01:56 PM
Hi, thank you for the reply,
but i have to set the font-color or insert an image near the resource label not formatting the appointment.
I attach an image for show where i have to change the color
but i have to set the font-color or insert an image near the resource label not formatting the appointment.
I attach an image for show where i have to change the color
0
Accepted
Hello,
Please refer to the following demo showing how you can use the server-side event OnResourceHeaderCreated.
Regards,
Boyan Dimitrov
Telerik
Please refer to the following demo showing how you can use the server-side event OnResourceHeaderCreated.
Regards,
Boyan Dimitrov
Telerik
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 the blog feed now.
0
TT
Top achievements
Rank 1
answered on 06 Sep 2013, 01:01 PM
Thank you,
I set the cssClass property to the header label in the OnResourceHeaderCreated event and it's works.
I set the cssClass property to the header label in the OnResourceHeaderCreated event and it's works.