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

From & To date, best way to do ?

1 Answer 31 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Theron Kousek
Top achievements
Rank 1
Theron Kousek asked on 27 Apr 2010, 11:51 PM
Hello

We're deciding if this particular use of RadCalendar would be non-practical.

We will need to have a from / to range selection on our screen.   No matter what is selected in the from, it should always use "1" as the day.   No matter what is selected in the to, it should always use the very last day in that month.

The screen would have:

From [ radcalendar1 ]          To [ radcalendary2 ]

So no matter what day they select in radcalendar1, "day 1" will be selected.  and "last day of month" would be selected in the 2nd one.

Would the best way to do that be "programmatically" by setting the selectedDate property in the code behind?

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 29 Apr 2010, 02:25 PM
Hi Theron Kousek,

One option is to constraint the user to select only dates defined by you. This can be accomplished by using the DayTemplateSelector property of the control. Find relevant information in our online example.
Also it is possible all of the tasks needed to be done in the code behind, as you suggested.

Kind regards,
Kaloyan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Calendar
Asked by
Theron Kousek
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or