jqGrid MVC – Add button row with icon

View:

function Grid_ViewFileLinkColumnFormatter(cellValue, options, rowObject) {
var cellHtml;
cellHtml = "";
return cellHtml;
}
function UploadedFile_RenewalAttachmentAdminGrid_AfterAjaxRequest() {
//Format column icon
$(".PopupIcon").button({
text: false,
icons: {
primary: "ui-icon-search"
}
});

}
function DownloadFile_PopupIcon_Click(fileID) {
var URL = '@Url.Action("GetFile")' + "?fileID=" + fileID;
window.open(URL);
}

jqGrid MVC – Row double click to edit row

Controller:
Private Sub Contact_SetupGrid(ordersGrid As JQGrid)
With ordersGrid
.ClientSideEvents.RowDoubleClick = "Contact_dblClickRow"
End With
End Sub

View:
function Contact_dblClickRow(rowID, isSelected) {
var editDialogOptions = $(this).getGridParam('editDialogOptions');
$(this).editGridRow(rowID, editDialogOptions);
}