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

Disable select for dates with events

3 Answers 203 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Naga gopichand
Top achievements
Rank 1
Naga gopichand asked on 13 Jul 2016, 02:31 AM

I wanted to select two or more consecutive empty cells . Cells with events should not be selectable.

 

code below:

http://dojo.telerik.com/axaCU

 

3 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 13 Jul 2016, 07:26 AM
Hi Naga,


Here is a small example of finding how much events falls inside given slot - you can use it as baseline to achieve the desired behavior:

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Naga gopichand
Top achievements
Rank 1
answered on 13 Jul 2016, 02:08 PM
Hi vladimir in the below picture i have selected three empty cells and it should not allow me to select the next cell with an event in it.I was looking for that help exactly.
0
Vladimir Iliev
Telerik team
answered on 14 Jul 2016, 07:45 AM
Hi Naga,

You can use the "change" event of the Scheduler to check if the slots that are selected (available in the vent data) meet your custom logic to restore previous selection (as the "change" event is not preventable). To be able to restore previous selection you should save it on each "change" event.

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
Naga gopichand
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Naga gopichand
Top achievements
Rank 1
Share this question
or