I am using the normal jqGrid. I have a column which I am displaying as a hyperlink in the grid. On hovering over the column item , I do see the url. on right click and open, the link does open. What I want is, on click of the link I want the page to open in a popup. At present it does nothing on click.
jQuery("#TestGrid").jqGrid({
datatype: "local",
height: 250,
autowidth: true,
colNames: ['ID', 'Name', 'Date', 'Status'],
colModel: [{
name: 'ID',
index: 'ID',
width: 300,
formatter: function(cellValue, options, rowdata) {
if (some_condition != "")
return "<a href= 'my_url' title='Details'</a>"
else
return "<a></a>"
}
},
{
name: 'Name',
index: 'Name',
width: 300
},
{
name: 'Date',
index: 'Date',
width: 300
},
{
name: 'Status',
index: 'Status',
width: 300
},
],
multiselect: true,
});