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

Multi Event Select Programatically and single deselect

2 Answers 19 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Veteran
Francis asked on 10 Jun 2020, 10:22 AM

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 Answers, 1 is accepted

Sort by
0
Francis
Top achievements
Rank 1
Veteran
answered on 11 Jun 2020, 04:44 PM

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);

 

0
Aleksandar
Telerik team
answered on 12 Jun 2020, 06:32 AM

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.
Tags
Scheduler
Asked by
Francis
Top achievements
Rank 1
Veteran
Answers by
Francis
Top achievements
Rank 1
Veteran
Aleksandar
Telerik team
Share this question
or