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