Thanks a lot,
I've managed it after adding a contextMenu plugin
$.contextMenu({
selector: '.pq-row-delete',
callback: function(key, options) {
if (key == "Delete Row") {
var ans = window.confirm("Are you sure to delete row No " + (g_dltRowIndx+1) + "?");
if (ans) {
$grid.pqGrid("deleteRow", { rowIndx: g_dltRowIndx, effect: true, complete: function () {
$grid.pqGrid("removeClass", { rowIndx: g_dltRowIndx, cls: 'pq-row-delete' });
}
});
}
else {
$grid.pqGrid("removeClass", { rowIndx: g_dltRowIndx, cls: 'pq-row-delete' });
}
}
else
$grid.pqGrid("removeClass", { rowIndx: g_dltRowIndx, cls: 'pq-row-delete' });
g_dltRowIndx = -1;
},
items: {
"Delete Row": {name: "Delete", icon: "delete"},
"Cancel": {name: "Cancel", icon: "quit"}
}
});