Disable select for dates with events

4 posts, 0 answers
  1. Naga gopichand
    Naga gopichand avatar
    7 posts
    Member since:
    Jul 2016

    Posted 12 Jul Link to this post

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

     

    code below:

    http://dojo.telerik.com/axaCU

     

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 13 Jul Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Naga gopichand
    Naga gopichand avatar
    7 posts
    Member since:
    Jul 2016

    Posted 13 Jul in reply to Vladimir Iliev Link to this post

    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.
  5. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 14 Jul Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready