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

Override rsAptContent

1 Answer 81 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Wayne Cook
Top achievements
Rank 1
Wayne Cook asked on 02 Aug 2011, 04:11 PM

It seems that I am missing something when I tried to change the style of an appointment.  I am catching the AppointmentDataBound event, and I set the CssClass, but it seems that it gets changed to “rsAptContent” after this event and I don’t know where.  Any help someone could provide would be much appreciated.

 

    Protected Sub RadSchedulerInterventions_AppointmentDataBound(ByVal sender As Object, ByVal e As SchedulerEventArgs)

        Dim EndDateFinalized As Boolean = e.Appointment.Attributes("EndDateFinalized")

 

        If EndDateFinalized Then

            e.Appointment.CssClass = "rsCategoryPattern"

            e.Appointment.BorderColor = Drawing.Color.FromName("#B0CC9B")

        Else

            e.Appointment.BackColor = Drawing.Color.FromName("#edd5b7")

            e.Appointment.BorderColor = Drawing.Color.FromName("#cdb597")

        End If

    End Sub

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Aug 2011, 03:06 PM
Hello Tommy,

The value specified through the CssClass property will render for the outer appointment div with rsApt class. Please, see the attached screenshot for more clarity on the  matter.

Regards,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Wayne Cook
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or