Hello Support Team,
I try to delete row under grouping but not able to delete.
Here is example my code:
var myGrid = this;
$cell.find("button").button({
icons: {
primary: 'ui-icon-scissors'
}
})
.bind("click", function() {
var ans = window.confirm("Are you sure to delete?");
if (ans) {
myGrid.deleteRow({
rowIndx: rowIndx
});
}
});
and also try with below code:
$cell.find("button").button({
icons: {
primary: 'ui-icon-scissors'
}
})
.bind("click", function() {
var group = $("#grid").pqGrid("Group");
group.removeGroup('Project_tx');
var ans = window.confirm("Are you sure to delete?");
if (ans) {
myGrid.deleteRow({
rowIndx: rowIndx
});
group.addGroup('myGrpColumn');
} else {
group.addGroup('myGrpColumn');
}
});
In the second code the row id is not current because after remove the grouping the row index is changed.
Please find below screen shot for giving you some idea about my requirement.