Welcome Guest Search | Active Topics | Sign In | Register

Unique Styling (Color) to Date Field Options
RyanD
Posted: Thursday, September 23, 2010 5:27:15 PM
Rank: Newbie
Groups: Member

Joined: 9/1/2010
Posts: 6
I'm trying to color a couple of future days on a calendar to denote shipping cost. Put another way... I want to make the tomorrow Red, the following day Orange, and the following day Yellow.

I have created a couple of logic functions to manage weekends and holidays without much trouble, so I'm pretty confident that I can skip around the unavailable dates... but I'm not sure how I can apply a unique style (CSS class or inline style) to a specific date.

Any ideas?? I'm using the eo:Calendar Control.

Thanks again, Ryan
eo_support
Posted: Thursday, September 23, 2010 8:45:51 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The only way you can do that is with custom rendering. With that you would handle the DatePicker's DayRender function to render raw HTML into each cell. You can then do whatever you like with the raw HTML.

Thanks!
RyanD
Posted: Friday, September 24, 2010 12:00:14 PM
Rank: Newbie
Groups: Member

Joined: 9/1/2010
Posts: 6
Perfect, that will work great. Thank you for the help!

Ryan


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.