I have a jqGrid where i have a column with delete hyperlinks for each row, i just cant manke hyperlink to make an action like onclick=\"jQuery('#list').deleteRow('" + cl + "');
when i used simple button
{ name: 'act', index: 'act', width: 100, align: 'center', sortable: false}],
gridComplete: function () {
var gr = jQuery('#list'); gr.setGridHeight("auto", true);
var ids = jQuery("#list").jqGrid('getDataIDs');
for (var i = 0; i < ids.length; i++) {
var cl = ids[i];
be = "<a href style='height:25px;width:120px;' type='button' title='Slet' onclick=\"jQuery('#list').jqGrid('delGridRow','" + cl + "',{reloadAfterSubmit:false, url:'@Url.Action("deleteRow")'});\" >Slet</>";
jQuery("#list").jqGrid('setRowData', ids[i], { act: be });
}
}