Completed
Last Updated: 25 Apr 2017 15:30 by rleast
ADMIN
Peter Milchev
Created on: 09 Mar 2017 12:29
Category: UI for ASP.NET AJAX
Type: Bug Report
4
When control inside a Template is focused, the focus of the nested control is immediately lost

		
4 comments
rleast
Posted on: 21 Apr 2017 17:23
Another solution is to switch the ItemTemplate to a ContentTemplate. The desired functionality is achieved. However when you set an item to a ContentTemplate the item can have no child items so it may not be a solution for every scenario. 
ADMIN
Peter Milchev
Posted on: 23 Mar 2017 08:41
It's a typo and is fixed now, thank you for spotting it.
Yuri Zhitnitsky
Posted on: 22 Mar 2017 20:06
is rmTempalte in your code miss spelled or correct?
ADMIN
Peter Milchev
Posted on: 09 Mar 2017 12:30
Workaround: 
<script type="text/javascript">
    Telerik.Web.UI.RadMenu.prototype._onLinkMouseUp = function (e) {
        var item = this._extractItemFromDomElement(e.eventMapTarget);

        if (!item.get_enabled()) {
            return true;
        }

        if (Telerik.Web.Browser.chrome || Telerik.Web.Browser.ie || Telerik.Web.Browser.edge) {
            this._preventBlurEvent = true;
            if (!$(e.eventMapTarget).has("rmTemplate")) {
                this.focus();
            }
        }

        item._clicked = false;
        item._updateLinkClass();
        item._updateImageSrc();

        return true;
    }
</script>