sendData behave strangely

I have a main grid with sub grid. In the sub grid I have checkbox so that user can check and uncheck the row.

First time, I checked the checkbox on row 1 and onCheck event triggered and update my table successfully via sendData. This is fine.

Second time, I unchecked the checkbox on the same row. This is fine.

Third time, I checked the checkbox on the same row. Now, it does not trigger my sendData. Why this happen? I’m trying a whole day to figure out the problem but to no success. Need help from Support and members in this forum.

Below is my code

mygrid.attachEvent("onSubGridLoaded",function(sub,id,ind,value){
        var dp = new dataProcessor("update.asp");
		dp.setTransactionMode("POST", true);
		dp.setUpdateMode("off");
		dp.init(sub);

	sub.attachEvent("onCheck",function(rowId, cellInd, state){
		if (state){
			dp.setUpdated(rowId, true);
			dp.serverProcessor = 'update.asp';
			dp.sendData();
			alert("Checkbox in the row with id="+rowId+" was checked");
		}
		else {
			dp.setUpdated(rowId, false);
			alert("Checkbox in the row with id="+rowId+" was UNchecked");
		}
	})
});

Unfortunately we cannot reproduce this issue locally.
BTW I think it would be easily to use dhtmlxTreeGrid. In such case you will need to initialize only one DataProcessor object. Please find TreeGrid example here dhtmlx.com/docs/products/dht … _init.html

I have put debugger in my code and the error turns out to be with SID in my server side code. If SID value is wrong or unknown, the debugger shows the error

“Incorrect SID, row with such ID not exists in grid”

Response.write("")

After changing the correct SID, then everything works fine.