In the subgrid view onclik of the record the url should open in new window
onclick of a record as below screenshot with column filename , the url in the download url should open in new window
'
below is the code i used, but it is not working
function openNewWindow(url) {
window.open(url, '_blank');
}
function onRecordClick(gridControl, row) {
var url = row.getCellValue("cs_downloadurl"); // cs_downloadurl is name of download url column
openNewWindow(url);
}
Xrm.Page.getControl("Subgrid_new_2").addOnRecordSelected(onRecordClick); ///Subgrid_new_2 - subgrid name