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

kendow-window autoFocus upon opening

2 Answers 673 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Jyothi asked on 22 Mar 2019, 08:44 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 26 Mar 2019, 07:00 AM
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.
0
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 27 Mar 2019, 02:46 PM

Hi Dimiter,

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

Regards,

Jyothi

Tags
Window
Asked by
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimiter Madjarov
Telerik team
Jyothi
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or