Hello,
I have somehow managed to run CSS ! but problem is, when the following function get fire ; it only change the first appointment CSS style and leave the rest. the same thing happen when i use rsCategory tag to assign to CSS class, as mentioned in example 2 below. Please advice where i am doing mistake or missing anything ...
Regards
Adnan.
1-
For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
If resource.Type = "Room" Then
Label1.Text += "<br/>" + resource.Text
e.Appointment.CssClass = resource.Text.Replace(" ", "_")
End If
Next
2 -
For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
If resource.Type = "Room" Then
' 'e.Appointment.CssClass = resource.Text.Replace(" ", "_")
If resource.Text = "SLC 107" Then
e.Appointment.CssClass = "rsCategoryRed"
End If
If resource.Text = "SLC 108" Then
e.Appointment.CssClass = "rsCategoryGreen"
End If
' End If
'Next
I have somehow managed to run CSS ! but problem is, when the following function get fire ; it only change the first appointment CSS style and leave the rest. the same thing happen when i use rsCategory tag to assign to CSS class, as mentioned in example 2 below. Please advice where i am doing mistake or missing anything ...
Regards
Adnan.
1-
For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
If resource.Type = "Room" Then
Label1.Text += "<br/>" + resource.Text
e.Appointment.CssClass = resource.Text.Replace(" ", "_")
End If
Next
2 -
For Each resource As Telerik.Web.UI.Resource In e.Appointment.Resources
If resource.Type = "Room" Then
' 'e.Appointment.CssClass = resource.Text.Replace(" ", "_")
If resource.Text = "SLC 107" Then
e.Appointment.CssClass = "rsCategoryRed"
End If
If resource.Text = "SLC 108" Then
e.Appointment.CssClass = "rsCategoryGreen"
End If
' End If
'Next