Slot template with input - input can't be unfocused

2 posts, 0 answers
  1. Boris
    Boris avatar
    18 posts
    Member since:
    Aug 2015

    Posted 14 Jul 2016 Link to this post


    I have modified this example working with slot template:

    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,


  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 18 Jul 2016 Link to this post

    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.

    Vladimir Iliev
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top