Multi Event Select Programatically and single deselect

3 posts, 0 answers
  1. Francis
    Francis avatar
    12 posts
    Member since:
    Jun 2019

    Posted 10 Jun Link to this post

    Hi,

    I'm wondering if anyone could point me in the direction of an example to be able to select multiple scheduler events programatically if I have the data-uid for each event to be selected. 

    Also I am looking to be able to de-select a single event programatically when multiple are selected. 

    Thanks,

    Francis

  2. Francis
    Francis avatar
    12 posts
    Member since:
    Jun 2019

    Posted 11 Jun Link to this post

    So further to this I have been trying various methods to achieve this and I have extracted the "uid" for each of the events that I would like to select which are in an array.

    I then pass the array to the scheduler.select method however the events are not being selected.

    Any help on this would be gratefully appreciated

    for help with what I'm doing this is what I am doing in the code

    var scheduler = $("#template").getKendoScheduler();
    var events = scheduler.occurrencesInRange(startTime, endTime);
    var selected : any = [];
     
    events.forEach(function (element: { uid: any; }) {
          selected.push(uid);
    });
     
    scheduler.select(selected);

     

  3. Aleksandar
    Admin
    Aleksandar avatar
    186 posts

    Posted 12 Jun Link to this post

    Hi Francis,

    The code looks correct, however, the inability to select multiple items is related to a known Bug that has been logged in our public repository:

    https://github.com/telerik/kendo-ui-core/issues/5119

    I have further raised the priority of the item, so it moves ahead in our queue. I suggest monitoring the item and updating the version of Kendo UI once the issue is fixed.

    Regards,
    Aleksandar
    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