Hi,All
At last i found the solution for this.
Calling The SetTimeOut() method passing focus() as a function will solve the issue.
My Code Is Like:
function setFocus() {
var grid;
grid = igtbl_getGridById('<%=OfflineReports.ClientID%>');
var actRow = igtbl_getActiveRow('<%=OfflineReports.ClientID%>');
var hypId = actRow.Id;
var hypctrl = document.getElementById(hypId);
var hlkurl = hypctrl.all;
if (hlkurl != null) {
var url = hlkurl[4];
var win = window.open(url);
setTimeout(function() { win.focus(); }, 1000);
}
}
Here i used ultra grid instead you can use Document.GetElementById("<%hypLink.ClientID%>");
Improve solution Permalink | Posted