Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gary P on Jun 29, 2009 11:00
open dhtmlx forum
dhtmlxgrid delete row causes error

I am evaluating your current PRO version of dhtmlxgrid.
On client side I have a link in a cell which calls the function (passing the row id)

function deleteSelectedRows(sr) {
if(confirm('delete row '+sr+'?')) {
mygrid.deleteRow(sr);
}
}

On the server side I am returning

<data>
<action type="delete" sid="<rowid>" tid="<rowid>" />
</data>

where <rowid> is the row id of the deleted row. On the client size the row gets deleted but a produces a javascript error

Line 857
Error: '_childIndexes' is null or not an object

Please advise on a solution.
Answer posted by dhxSupport on Jun 30, 2009 02:09
Please check if sid return correct id of a row which was deleted. If issue still occurs try to include dhtmlxdataprocessor_debug.js file to your page and send us log file.