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

Kendo Scheduler - Change event not getting triggered when event is unselected programmatically.

2 Answers 252 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lloyd
Top achievements
Rank 1
Lloyd asked on 11 Apr 2016, 05:00 AM
I am trying to select an event from UI after unselecting it programmatically. Even though the event is shown as selected the change event is not getting triggered. Please see the code snippet for the same:

http://dojo.telerik.com/omUPU

Steps to replicate:

1.Open the developer tools to see the console.log messages.
2. Click on any event.
3. Now click on button'Reset all'. This will unselect any selected events.
4. Now try to select the same event as in Step 2.

The event gets selected in UI, however no change event console.log is seen.

Note: The change event will be triggered when selecting any event other than the one selected in Step 2.

How do I fix this issue?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 12 Apr 2016, 09:09 AM
Hi,

After inspecting the provided demo it appears that the "change" event is not triggered as the Scheduler still keeps internally the previous navigation position after clearing the selection. I forwarded this to our dev team and it's already fixed on our side. Until the next internal build is available for download you can use the following workaround:

$scope.resetSelections = function() {
  $scope.kendoScheduler.select(null);
  $scope.kendoScheduler._old = null;
};

Also as a small sign of our appreciation I have updated your Telerik points.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Lloyd
Top achievements
Rank 1
answered on 12 Apr 2016, 11:12 PM

Thank you very much for providing a workaround. The solution works! 

Appreciate the prompt reply.

 

Tags
Scheduler
Asked by
Lloyd
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Lloyd
Top achievements
Rank 1
Share this question
or