Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to set colors for days of a calendar

    Hi All,

    I am working with Calendar and I have to set different colors for the days of the calendar. I tried setting the CSS in 'skin_styles.css' file of the deployment but was not successful in setting up the background.

    Please suggest me how to go with this problem.

    Thanks.

    - Rafi
    Attached Files
    Last edited by mdrafi; 15 Apr 2010, 03:39.

    #2
    Hi,

    you could try overriding the calendar.getDayBodyBaseStyle() method and changing the stylename returned based on the Date... might be possible.

    Alan

    Comment


      #3
      Hi Alan,

      Thanks for your reply...

      I tried the calendar.setDayBodyBaseStyle() option for a particular date but the css is applied for the whole calendar, but I have to set different colors for different dates as shown in the above attached image. for eg: for weekdays one color and weekends another color.

      Please guide me to proceed further.

      Thanks.
      -Rafi.
      Last edited by mdrafi; 15 Apr 2010, 21:55.

      Comment


        #4
        Have been an advance in this case?

        Comment


          #5
          This example shows you how to change the render of each element in the calendar

          http://www.smartclient.com/smartgwt/...endar_category

          Comment


            #6
            Any one have did it?

            Comment

            Working...
            X