Calendar Control + Today Button - Always Show?

4 posts, 0 answers
  1. Ian Coetzer
    Ian Coetzer avatar
    65 posts
    Member since:
    Sep 2004

    Posted 22 Oct 2008 Link to this post

    Hi

    I'm using the RadDatePicker to allow the user to select a month and day.
    When the user clicks on the Month Name another popup appears
    where the user can select a specific month and year and there is also a 'Today' button at the bottom of this second popup.

    Is it possible to have the 'Today' button appear by default on the popup calendar and not only be visible when the user also clicks on the Monthname in the calendar popup?

    Bye
  2. Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 22 Oct 2008 Link to this post

    Hello Ian,

    The "Today" button in the RadCalendar's month/year fast navigation popup is intended to take you to the current year+month. It does not select today's date.

    I am not sure I fully understand what you are trying to achieve, however, here are two scenarios for you to consider:


    1) Mark today's date in the picker's popping calendar, so that it is clearly visible:

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
        <Calendar runat="server">
            <SpecialDays>
                <telerik:RadCalendarDay Repeatable="Today" Date="" ItemStyle-CssClass="rcToday" />
            </SpecialDays>
        </Calendar>
    </telerik:RadDateTimePicker>

    The rcToday class will use the Calendar's native today style for today's date. Note that rcToday is a CSS class introduced in Q3 2008 Beta. If you are using an older version of RadControls, please replace it with radCalToday_SkinName


    2) Make today's date selected by default, using the SelectedDate property (you can do this programmatically or declaratively with an expression: SelectedDate='<%# DateTime.Now %>' )


    Best wishes,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Ian Coetzer
    Ian Coetzer avatar
    65 posts
    Member since:
    Sep 2004

    Posted 22 Oct 2008 Link to this post

    Hi

    Ok, what I'm trying to ask for is if it is possible to have a DatePicker, that when clicked by the user opens a calendar ....

    (which it does very well)

    BUT

    that calendar that appears should also have a button "Today" which takes the user to the current year, month and day.

    This button is available when the user clicks on the Month's name, BUT the business analyst testing this Calendar date picker is say that the users will not know that they must click on the Month name because there is no indication that it is a link / button and the end-users are not skilled enough to be able to 'play' with the calendar control to find this 'Today' button ...

    I hope that explains my query. I'm very happy with the control as is, but the Business Analyst wont sign it off and release it to the users if they cannot easily see the 'Today' button and not have any hints that clicking on the Month name will bring up yet another popup window over the calendar.

    Can the initial Calendar popup not contain ALL of the information (months, years, today button, days but in one bigger popup instead of two?

    Thanks
  4. Dimo
    Admin
    Dimo avatar
    8478 posts

    Posted 23 Oct 2008 Link to this post

    Hi Ian Coetzer,

    Thank you for the clarifications.

    Well, RadCalendar by default cannot display a "Today" button in its main area, however, here are a couple of things that you can do:


    1) Add such button in the RadCalendar's header or footer template. Here is some more information about using templates:

    RadCalendar Templates Demo

    RadCalendar Templates Help Article


    2) Help the users understand that the RadCalendar's title is clickable by modifying its appearance. For example - you can underline it, or make it look like a button, etc.



    Greetings,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top