Hello Param,
I'm sorry for the confusion.
This code works only 1 once
,refresh: function (event, ui) {
//console.log('refresh run');
if (!$grid) {
return;
}
//Delete Function
$grid.find("img.delete_btn")
.unbind("click")
.bind("click", function (evt) {
var $tr = $(this).closest("tr"),
rowIndx = $grid.pqGrid("getRowIndx", {
$tr: $tr
}).rowIndx;
deleteRow(rowIndx);
});
//Update Function
$grid.find("img.edit_btn")
.unbind("click")
.bind("click", function (evt) {
var $tr = $(this).closest("tr"),
rowIndx = $grid.pqGrid("getRowIndx", {
$tr: $tr
}).rowIndx;
//console.log(rowIndx);
update(rowIndx,0,38);
});
}