I'm experiencing some bizarre behavior with launching a pop-up window via Javascript -- window.open -- inside an UltraWebGrid in an UltraWebTab. One of the columns in the grid is a TemplatedColumn, and in the CellTemplate is a simple hyperlink, the code for which is as follows:
<a href="#" onClick="BLOCKED SCRIPTwindow.open('File.htm")>View</a>
Here's the bizarre behavior: When I click the link, the pop-up window appears behind, and not in front of, the parent window. I've tried focusing it -- var e = window.open....e.focus() -- but that doesn't work.
If I do the exact same thing on a page without the UltraWebTab, it works as expected: the pop-up window appears in front of the main window. It seems that the UltraWebTab is somehow forcing the pop-up behind the main window.
Has anyone experienced this problem before?
I'm using version 6.3, BTW.
Hello,
This definitely seems weird. From what I can tell, this could be an issue with TargetFrame / TargetUrl and/or and z-index issue. You can also try a couple of things:
1) Upgrade to newer versions of the controls
2) Try updating to the latest available hotfix for 6.3
3) Use our own WebDialogWindow control instead of Pop Up and see if it works better (available in our 8.1+ release).
HTH,
Correction. This happens when there are two or more UltraWebGrids on the page, and both are visible (that is, the visibility is set to true). UltraWebTab has nothing to do with this. If I set the visibility of the other grid to false, then the pop-up window stays focused.
And....I have found the solution! Here it is:
http://news.infragistics.com/forums/p/813/10605.aspx