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

RadDatePicker Weekend Style

1 Answer 157 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
sanjay
Top achievements
Rank 1
sanjay asked on 25 Sep 2008, 02:04 PM
When I set the WeekendDayStyle-BackColor the calender sets the correct background to all but 1 day.  It seems that the last Saturday in the previous month does not get the background color applied.

<telerik:RadDatePicker ID="BirthDatePicker" runat="server"   
    AllowEmpty="true"   
    DBSelectedDate='<%# Bind("BirthDate") %>'   
    MinDate="1/1/1920" 
    Skin="Office2007" 
     Width="100px">  
    <Calendar UseRowHeadersAsSelectors="True" UseColumnHeadersAsSelectors="True"></Calendar> 
    <DateInput></DateInput>  
    <DatePopupButton ></DatePopupButton>  
    <Calendar WeekendDayStyle-BackColor="#ccff99"   
        ShowRowHeaders="false"></Calendar> 
</telerik:RadDatePicker> 

1 Answer, 1 is accepted

Sort by
0
-DJ-
Top achievements
Rank 1
answered on 25 Sep 2008, 02:38 PM
Hi Sanjay,

When I run that code all weekend-days within the month get the stated background color, but none of the weekend-days outside the selected month. The last saturday in the previous month renders just like any other weekend-days in other months.

Perhaps it has something to do with the DBSelectedDate='<%# Bind("BirthDate") %>'  statement.

I'm not sure if you can change weekend days in other months without changing the weekdays there as well, as the only class applied to othermonth-days is otherMonth_Skin class.

Regards,
-DJ-
Tags
Calendar
Asked by
sanjay
Top achievements
Rank 1
Answers by
-DJ-
Top achievements
Rank 1
Share this question
or