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

[Solved] help: odd weeks and even weeks

4 Answers 108 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 1
Cedric asked on 02 Nov 2007, 06:49 PM
Good day,

Here is what I am trying to achieve:

In a monthview, I would like to make a visual distinction between odd and even weeks. In my opinion, the best way to proceed would be to set a small different color to the cells (days) that are in an even week from those that are in an odd week.

If any of you have any idea how I could achieve that in the scheduler, it would be greatly appreciated. I just checked the CSS and only the Sundays and Saturdays have a special CSS tag (rsSatCol or rsSunCol).

Any ideas from you guys would be greatly appreciated. It may even something different than playing with colors, I'm open to any idea.

Thank you!

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Nov 2007, 12:38 PM
Hello Cedric,

The rendering mechanism of RadScheduler does not allow an alternating css styles to be applied  for the weeks' rows in MonthView.  You can modify the style for all cells in RadScheduler for a particular view as suggested by
this KB article. We will consider your request and if there is an increased demand for such functionality we will implement it.



Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Cedric
Top achievements
Rank 1
answered on 05 Nov 2007, 03:55 PM

Good day,

Thank you for your answer. Since changing the color of particular cells is not an option, I would like to know if there is a possibility to add some information to a particular row, like another column that would act as 'row header', If this option is not possible, any other mecanism that you may think of would be appreciated.  

Thank you!

0
Peter
Telerik team
answered on 05 Nov 2007, 04:50 PM
Hello Cedric,

Technically speaking, it is possible to set alternating styles for the weeks' rows. However, the implementation would require a complex java script solution. Here is what I have in mind specifically. Please, refer to the attached screenshot of Firebug. Since .rsFirstRow and .rsLastRow apply to the first and second rows respectively, you can set unique appearance for these rows through css. Then all you have to do is set the the appearance for the middle row with javascript. I hope this helps.



Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Cedric
Top achievements
Rank 1
answered on 05 Nov 2007, 04:58 PM
Thank you very much for this idea!

Have a great day.

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