RadDatePicker Weekend Style

2 posts, 0 answers
  1. sanjay
    sanjay avatar
    2 posts
    Member since:
    Jun 2008

    Posted 25 Sep 2008 Link to this post

    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> 
  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 25 Sep 2008 Link to this post

    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-
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top