|
Tutorial - Select only special dates
|
| | |
Calendar can have unlimited number of special dates.
For each special date you can set CSS class name and a ToolTip.
| | |
ASP.NET
<< | Tuesday, January 06, 2009 | >> |
|
Special dates are marked in red.
Only special dates are selectable.
|
<obout:Calendar runat="server" AllowSelectSpecial="true" EnabledDateExpression="false">
<obout:SpecialDate Year="2006" Month="3" Day="20" ToolTip="Dentist appointment" /> <obout:SpecialDate Year="-1" Month="7" Day="4" ToolTip="Independence Day" CSSClass="indDay" CSSClassOver="indDay" />
</obout:Calendar>
|
| | |
C#
Use AddSpecialDate method. See documentation for details on this method.
Cal.AddSpecialDate(2006, 3, 20, "Dentist Appointment");
Cal.AddSpecialDate(-1, 7, 4, "Independence Day", "indDay");
| | |
| "WOW! Now you are cooking with gas! oBout rocks my world. You guys are the best.
Kudos! I will continue to recommend you to all of my developer buddies." |
Joshua Richards |
| Liquid Circuit, LLC |
| | |
|