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

Slot template with input - input can't be unfocused

1 Answer 59 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 14 Jul 2016, 12:20 PM

Hello,

I have modified this example working with slot template:

http://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/set-slot-background-color-using-slot-templates

The modification was to add an input into the slot template, so the slot template looks like this:

"<div style='background:#=getColorBasedOnHour(date)#; height: 100%;width: 100%;'><input/></div>"

When I click in the input, it receives focus. However, when I click somewhere else in the scheduler, the input is still focused. To unfocus the input, I have to click outside the area of the scheduler.

I want to unfocus the input when I click somewhere inside the scheduler. Is it possible?

Thanks for answers,

Boris

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 18 Jul 2016, 07:15 AM
Hi Boris,

To able to move the focus you need to have focusable element or custom logic that to track clicks on the toolbar for example and manually blur the editor in question. Currently we have no such example, however you can achieve this using jQuery.

Regards,
Vladimir Iliev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
Boris
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or