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

Retain Scheduler Selection on Lost Focus

2 Answers 30 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 13 May 2015, 10:53 PM

Whenever you click anywhere outside of the scheduler the selected cells are deselected (the k-state-selected class is removed). I want to keep the selection until a new one is made. Can anyone help me out with this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 14 May 2015, 11:14 AM
Hi Trevor,

Basically the Scheduler selection includes keyboard navigation which requires widget to be focused in order to work correctly. That why the widget listens on "focus" events and removes the selection when the widget is no longer the focused element. This behavior cannot be prevented out of of the box and custom solution would be needed.
For example you can attach custom "focusout" handler to the widget element and on each trigger to apply the selection manually (achieving this however would require using private methods of the widget).

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
Trevor
Top achievements
Rank 1
answered on 14 May 2015, 01:51 PM

Hi Vladimir,

I attached to the focusout handler as suggested and was able to manually handle it. Thanks for the suggestion.

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