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

Disable selection of multiple days

1 Answer 41 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Aakash
Top achievements
Rank 1
Aakash asked on 07 Jul 2011, 07:26 PM

How can I disable selection of weekends and selection of particular days when I have multi-select enabled ?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2011, 04:19 AM
Hello Aakash,

You can attach OnDateSelected client event and cancel the event based on the date selected.

javascript:
function OnDateSelecting(Sender, args)
   {
        var date = args.get_renderDay().get_date();//gets the selected date
       //check for the condition and cancel the event.
    }

Also take a look in to the following help article for more on this.
OnDateSelecting.

Thanks,
Shinu.
Tags
Calendar
Asked by
Aakash
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or