Override rsAptContent

2 posts, 0 answers
  1. Wayne Cook
    Wayne Cook avatar
    4 posts
    Member since:
    Nov 2009

    Posted 02 Aug 2011 Link to this post

    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

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 03 Aug 2011 Link to this post

    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.

Back to Top