Raddatepicker calendar select today's date

2 posts, 1 answers
  1. Guido Neele
    Guido Neele avatar
    1 posts
    Member since:
    Jul 2012

    Posted 10 Sep 2012 Link to this post

    Hi!

    I use a raddatepicker on my page. If the user opens the calendar, I want that today's date is highlighted . I don't want to set the date of the raddatepicker itself, only the date in the calendar. Is this possible? I've tried the focuseddate and selecteddate, but nothing changed.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Sep 2012 Link to this post

    Hello,

    Try the following code snippet to achieve your scenario.

    ASPX:
    <telerik:RadDatePicker ID="Date1" runat="server">
        <Calendar>
           <SpecialDays>
               <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Red" />
           </SpecialDays>
        </Calendar>
    </telerik:RadDatePicker>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top