Hi,
Here is my grid:
<ejs-grid id="aaGrid" allowPaging="true" allowSorting="true" queryCellInfo="CommonGridCellTemplate">
<e-grid-columns>
<e-grid-column field="Id" isIdentity="true" isPrimaryKey="true" allowSorting="false" allowFiltering="false" visible="false"></e-grid-column>
...
</e-grid-columns>
</ejs-grid>
Script code:
var grid = document.getElementById("aaGrid").ej2_instances[0];
grid.deleteRecord("Id", grid.getSelectedRecords()[0]);
ERROR when script gets executed:
TypeError: Cannot read property 'deleteRecord' of undefined at t.deleteRecord