Hi Michael,
Thanks for contacting Syncfusion support.
We checked in our sample with the following code and we can able to delete the record in the grid.
Find the code example and sample:
<button id="button" onclick="mydelete()">Delete</button>
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
dataSource: window.gridData,
allowSorting:true,
allowPaging: true,
---------------------------
columns: [
----------------------------
]
});
});
function mydelete(args) {
_ejGrid = $("#Grid").data("ejGrid");
var selrecs = _ejGrid.getSelectedRecords()
var rowtodel = selrecs[0];
_ejGrid.deleteRecord("OrderID", rowtodel);
}
|
To find out the root cause of the issue, we need the following details,
1. Ensure that you have select the particular record in grid before performing the delete operation.
2. Code example of a Grid.
3. Ensure that you face any script error in the console? If yes, Share the screenshot of an console error.
4. Ensure that you have enable isPrimaryKey property for the unique column and allowDeleting property in editSettings API.
5. Essential Studio Version details.
Regards,
Prasanna Kumar N.S.V