Select slots programmatically in monthly timeline

2 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    1 posts
    Member since:
    Mar 2017

    Posted 18 Jun 2020 Link to this post


    I am trying to implement some conditional selection of slots in monthly timeline of scheduler. I looked at an example provided here:
    and modified this example by adding the following code to scheduler definition (link to dojo snippet:

              selectable: true,
              change: function (e) {
                var start = e.start;
                var end = e.end;
      {start: start, end: end});

    Adding this allows to select slots in row 0 (by default - as expected), but I want to be able to select slots in any row. The documentation suggests I should specify resources in options.resources, but I have no idea what should I put there and having given it a few shots I constantly encounter errors. Could you provide me with an updated dojo example that shows how to achieve it?

  2. Ivan Danchev
    Ivan Danchev avatar
    2150 posts

    Posted 22 Jun 2020 Link to this post

    Hello Sebastian,

    Here's a modified dojo example, which shows how to use the resources when selecting a slot:

    With the room resource value being passed to the select method, the first slot within each room row will be selected. If you pass the attendee value as well (commented in the linked dojo), the behavior will be the default one - every slot would be selectable.

    Ivan Danchev
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top