Hi there,
I've got a WebDataMenu which is used to open a new window when clicking on a menu item. In firefox, when I click the link, the window opens fine and the focus is correct - on the new window. In IE, however, when I click the link, the new window opens up, but focus is immediately removed from the new window and given to the opening window. I've attempted to put in a window.focus() call at the end of my click handler, but it looks as though the focus is being stolen after the click handler has finished executing. Is there a way of ensuring the newly opened window retains the focus for IE?
Thanks!
Has there been a resolution to this issue? I just reproduced it again myself in IE 9.
Anthony, you're correct. Setting the ActivateOnHover to "false" resolved the focus issue for the new window. However, like you mentioned, the behavior isn't exactly what we're looking for as now it caused other selections to not load the current page.
I have the same problem in IE 9.
I can make the window focus properly if I set ActivateOnHover = "false", but that is not the behavior I want. It seems to be related to the blurring of the menu item. I tried debugging the code and overriding the _navigateOnClick() function to set the window focus and tried setting the WebDataMenu's __cancelBlur property to false, but still no go.
Several people are obviously having this problem. Please get us a solution IG. Thanks!
I'm having the same issue on IE8. I'm in the middle of upgrading v7.2 to v12.1 (12.1.20121.2119 to be specific). The data menu is dynamically generated via the sitemap structure. Prior to the upgrade, the selection of the data item within the menu correctly created a new window page with focus. Now, after the upgrade, the new window is created but loses focus and immediately minimizes causing the users to think that the new page didn't get created.
I also think it has to do with the javascript embedded within the new controls, specifically igDataMenuItem.js. I tried updating that javascript file in the ig_common\scripts directory, but the application doesn't appear to load the updated version, but rather continues to load the embedded version.
Two questions:1. How do I fix this focus issue?2. How do I have the app to use the javascript file that I updated in the ig_common\scripts directory instead of the version embedded in the controls?
Hello,
I used ItemClick client event in order to reproduce the behavior.
I was not able to encounter the described issue.
<ClientEvents ItemClick="WebDataMenu1_ItemClick" />
function WebDataMenu1_ItemClick(sender, eventArgs)
{
///<summary>
///
///</summary>
///<param name="sender" type="Infragistics.Web.UI.WebDataMenu"></param>
///<param name="eventArgs" type="Infragistics.Web.UI.DataMenuItemCancelEventArgs"></param>
//Add code to handle your event here.
window.open('http://www.google.bg/search?q=' + eventArgs.getItem().get_text() , '_blank');
}
Please feel free modify my code snippet in order to reproduce the issue or provide us with an example replicating it.
Hope hearing from you.