How do I unselect a selected event programmatically? I tried to call the select() method with an empty array input but it doesn't seem to unselect the events. Further, I see that the change event is invoked only once as opposed to twice in the Chrome console window.
Please see the below code snippet for an example.
Thanks in advance.
5 Answers, 1 is accepted
This functionality is really critical for our application. Are there any updates or suggestions for this issue?
You can clear the selection passing 'null' to the select method: Let me know if this does not help.
Regards,
Georgi Krustev
Telerik
Please document this behaviour!
There is no mention of how to clear the selection on the scheduler API pages.
Hi, Martin,
We will add a line in the select method API showing how to clear the selection.
Hi there,
I know I am a bit late, but passing the value null to the Method select(), it is working only when I trigger this in the Scheduler_Navigation Function. But what I am trying to do, is to trigger the select() Method after Canceling the Editor.
So this is what I did in the Scheduler_Cancel Function AND in the Scheduler_Navigation Function :
var
scheduler = $(
"#schedulerEvent"
).data(
"kendoScheduler"
);
scheduler.select(
null
);
It's deselecting the Selected Slots only when i navigate, but when i cancel the Editor, it is just changing the selected Slots from more than one Slot to the FIRST SLOT ON THE LEFT SIDE
Hello,
Indeed in this scenario the Scheduler selects the first slot in the view. You can remove the k-state-selected class from the slot with jQuery:
scheduler.select(null);
setTimeout(function() {
$('.k-scheduler-content td.k-state-selected').removeClass('k-state-selected');
}, 0);
Regards,
Ivan Danchev
Progress Telerik