I have a Kendo button with the click event defined as:
@(Html.Kendo().Button()
.Name("btnAddNewLineItem")
.Tag("span")
.Icon("plus")
.Content(@InvSubModule.Infrastructure.Localization.ResourceManager.GetString("AddNew") +" " + "<span></span>")
.HtmlAttributes( new {type = "button"} )
.Events(ev => ev.Click("AddLineItemButtonRequest"))
)
In my JavaScript method: "AddLineItemButtonRequest", the last line sets the focus to another control on the page via jQuery:
$("#LineItemType").focus();
However, after this line, the focus is shifted back to the Kendo button above. Is there another way I should be setting the focus?
Thanks for your time,
Scott Dulock
@(Html.Kendo().Button()
.Name("btnAddNewLineItem")
.Tag("span")
.Icon("plus")
.Content(@InvSubModule.Infrastructure.Localization.ResourceManager.GetString("AddNew") +" " + "<span></span>")
.HtmlAttributes( new {type = "button"} )
.Events(ev => ev.Click("AddLineItemButtonRequest"))
)
In my JavaScript method: "AddLineItemButtonRequest", the last line sets the focus to another control on the page via jQuery:
$("#LineItemType").focus();
However, after this line, the focus is shifted back to the Kendo button above. Is there another way I should be setting the focus?
Thanks for your time,
Scott Dulock