I'm using a web grid and I am using TargetUrl to assign a link.
his.webGrid.Rows[i].Cells.FromKey("Name").TargetURL = "Item.aspx?id=" + Id;
But this link is opening a new page on the same page but I wanted to open a new window for this page. Could you please help me?
Updated
I found this code in this forum and it is working fine but it is opening the explorer but unfocused. It opens the window and keep the current window focused. Am I making any mistakes?
{
e.Row.Cells[0].Value = href;
}
function PODetailsGrid_CellClickHandler(gridName, cellId, button){ var currentCell = igtbl_getCellById(cellId); convChartWindow = window.open("conversioncharts/" + currentCell.getValue() + ".html", "chart", "location=0,0, status=1, scrollbars=1, width=" + screen.width + ", height=175"); self.setTimeout('setWindowFocus(convChartWindow)', 1000) } function setWindowFocus(w) { w.focus(); }