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

Calendar multiple date selection problem

3 Answers 144 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 2
Keith asked on 29 May 2013, 07:50 PM
I have a simple RadCalendar control that allows the user to select a range of consecutive days. The first day is clicked regularly then the second day is selected with the shift key pressed. All days between the two days are placed in the selected range. However, by setting EnableMultiSelect to true, the user can also select the days at the top of the calendar (M, T, etc) and the calendar will select every Monday, Tuesday, etc.

We need to ensure users cannot select days in this way because the days are not consecutive, but we still need to allow mulitselect.

I am using javascript to manage the date selection by clearing the previous date is the user does not press the shift key.
Selecting the dates by clicking on the week number in the left margin is ok, although if that functionality was lost, it wouldn't be a problem.

Is there a setting that I can use to allow multiselect and but disallow users clicking the column and row headers?

3 Answers, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 03 Jun 2013, 08:45 AM
Hi Keith,

Set these properties:
<telerik:RadCalendar runat="server"
EnableMultiSelect="true"
UseColumnHeadersAsSelectors="false"
UseRowHeadersAsSelectors="false">
</telerik:RadCalendar>


Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Keith
Top achievements
Rank 2
answered on 03 Jun 2013, 01:05 PM
It seems to me that I tried that already without any luck. I will verify by testing those settings once again.

In the meantime, I have been using javascript to cancel the mouseclick event on the headers.
0
Keith
Top achievements
Rank 2
answered on 03 Jun 2013, 03:38 PM
I was able to use your suggestion to resolve the issue. Apparently the client cache needed to be cleared to allow the changes to be applied.
Tags
Calendar
Asked by
Keith
Top achievements
Rank 2
Answers by
Vasil
Telerik team
Keith
Top achievements
Rank 2
Share this question
or