kendow-window autoFocus upon opening

3 posts, 1 answers
  1. Jyothi
    Jyothi avatar
    33 posts
    Member since:
    Dec 2018

    Posted 22 Mar 2019 Link to this post

    Hi,

    I am using kendo-window in my application. When I open the window by clicking on a  button,it opens, but the focus is not on the kendo-window. As a result, if I click on the 'X' icon, it does not close. I have to first click somewhere on the kendo-window before the 'X' icon/button works (i.e it closes the window).

    Is there a way to set the focus on the kendo-window upon opening? I am using Angular 6. This is usability issue and needs to be resolved.

    In my test app, where I have this as a standalone project like we see in stackblitz, it works. I can't understand why it would behave differently in my real application.

    Any pointers would be really helpful.

    Regards,

    Jyothi

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2308 posts

    Posted 26 Mar 2019 Link to this post

    Hello Jyothi,


    Indeed at the moment the Window component is not being focused when opened, so we will consider to improve this behavior in future versions. A possible workaround for the time being would be to use it's focus method upon opening it, as in the following example

    https://stackblitz.com/edit/angular-xkuzjm?file=app/app.component.ts

    Regards,
    Dimiter Madjarov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Jyothi
    Jyothi avatar
    33 posts
    Member since:
    Dec 2018

    Posted 27 Mar 2019 in reply to Dimiter Madjarov Link to this post

    Hi Dimiter,

    Great! that did it. Thanks again for your prompt reply.

    Regards,

    Jyothi

Back to Top