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

Calendar Control + Today Button - Always Show?

3 Answers 260 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ian Coetzer
Top achievements
Rank 2
Ian Coetzer asked on 22 Oct 2008, 12:15 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Oct 2008, 12:42 PM
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.
0
Ian Coetzer
Top achievements
Rank 2
answered on 22 Oct 2008, 06:29 PM
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
0
Dimo
Telerik team
answered on 23 Oct 2008, 07:47 AM
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.
Tags
Calendar
Asked by
Ian Coetzer
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Ian Coetzer
Top achievements
Rank 2
Share this question
or