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

[RadCalendar] Automatic week selection instead of the day selection

4 Answers 188 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 23 May 2008, 07:57 AM
Hello,

I use a RadCalendar. My problem is the following : when the user select a day, I want to deselect all the selected days and select all the week.
So, I use the following parameters : 

UseColumnHeadersAsSelectors

="false" EnableViewSelector="false" UseRowHeadersAsSelectors="true"

For the unselection, it's not a problem, I use the methods unselectedDates and get_selectedDates (for the events OnDateClickand OnRowHeaderClick).

But I don't think a easy to select all the week :
I have 2 ideas to do that :
- Obtains the row (args.get_renderDay().DayRow) and call the method used for a row header click, but I don't see how to call it.
- create a new Date javascript object based on the triplet returned by args.get_renderDay().get_date() and, using the getDay method, manually compute the day for the monday, the tuesday... But I think this way is not the best to do that. 
What's the good solution ?

Thank you in advance,

Christophe.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 23 May 2008, 10:36 AM
Hello Christophe,

Take a look at the following code libraries:

All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christophe
Top achievements
Rank 1
answered on 23 May 2008, 02:12 PM
Hello Steve,

Thank you, I think the third link is exactly what I want.

Christophe.
0
Marijana Cubra
Top achievements
Rank 1
answered on 01 Jun 2010, 01:19 PM
Hello,

Can you please update links to given examples?

Regards,
M
0
Maria Ilieva
Telerik team
answered on 01 Jun 2010, 01:48 PM
Hi,

Find the updated links below:

Calendar single day / single week selection
Calendar week selection only (with confirmation popup)
Select the whole week by clicking on a date



All the best,
Maria Ilieva
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
Christophe
Top achievements
Rank 1
Answers by
Steve
Telerik team
Christophe
Top achievements
Rank 1
Marijana Cubra
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or