How to keep focus on same Kendowindow modal poup on Tab click

0 Answers 108 Views
General Discussions View Window
santosh
Top achievements
Rank 1
santosh asked on 17 Jun 2022, 12:29 PM

Hi Forum,

I have kendowindow opens as dialogue where we have two dropdown and two button (OK, Cancel)

once window loads focus on window and while tab click goes all fine till Cancel button, after that focus shift to browser

I wanted to keep focus on same window, Instead go to somewhere else in screen.

Below is piece of code snippet.

@(Html.Kendo().Window()
                                                .Name("AddressSelectionModal")
                                                .Modal(true)
                                                .Visible(false)
                                                .Width(350)
                                                .Animation(true)
                                                .Title("")
                                                .Actions(actions => actions.Clear())
                                                .Content(@<text>
                                                    @Html.Partial("~/Views/Shared/Modals/test.cshtml")
                                                </text>)

 

I was trying by write below code on cancel button "onblur" event but seems does not works.

 $("#AddressSelectionModal").data("kendoWindow").focus();

Please help on this how to keep focus on same kendowindow.

Thanks,

Santosh

No answers yet. Maybe you can help?

Tags
General Discussions View Window
Asked by
santosh
Top achievements
Rank 1
Share this question
or