Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Opening a new window via WebDataMenu link - focus problem
posted

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!

Parents
  • 19693
    posted

    Hello kslone,

    I tried to reproduce the issue with DataMenuItem with NavigateUrl ( Target="_blank") in order to open new window. 

      <ig:WebDataMenu ID="WebDataMenu1" runat="server">

                <Items>

                    <ig:DataMenuItem Text="Root Item">

                        <Items>

                            <ig:DataMenuItem Text="Google" NavigateUrl="http://google.com" Target="_blank">

                            </ig:DataMenuItem>

                            <ig:DataMenuItem Text="Infragistics" NavigateUrl="http://infragistics.com" Target="_blank">

                            </ig:DataMenuItem>

                        </Items>

                    </ig:DataMenuItem>             

                </Items>

            </ig:WebDataMenu>

    I was not able to encounter the issue with InternetExplorer. 

    Do you another approach in order to achieve this?

    Let me know if you need further assistance.

Reply Children