Server side Dalete operation not working

Please check the below code…

lazyGrid = new dhtmlXGridObject(‘gridbox’);
lazyGrid.setImagePath(“…/codebase/imgs/”);
lazyGrid.setHeader(“Date,RSN,PickSelct,Number”);
lazyGrid.setColumnIds(“D04,F01,C10,N01”);
lazyGrid.enableValidation(“true,true,false,true”); lazyGrid.setColValidators(“isDate,isFloat,isNumber”);
lazyGrid.setInitWidths(“100,100,100,100”);
lazyGrid.setColAlign(“center,left,center,left”);
lazyGrid.setColSorting(“date,int,str,int”);
lazyGrid.setColTypes(“dhxCalendarA,ed,coro,ed”);
lazyGrid.setSkin(“dghtmlxcss”);
lazyGrid.init();
lazyGrid.enableEditEvents(true,false,false);
lazyGrid.enableSmartRendering(true, 200);
lazyGrid.enableMultiselect(true);

below method is called when delete button is pressed…

function f_delete_DHTMLX(selectedRowId, lazyGrid){
var ret=“”;
var uniqueRSN=“”;
if(selectedRowId==null) {
alert(‘Please select a row to delete’);
return true;
}else{
ret= top.f_confirm(‘Are you sure you want to delete this’, ‘YesNo’);
if(!ret) return true;
}
var rows = selectedRowId.split(“,”);
var tableName = document.getElementById(‘tableName’);
for (var i=0;i<rows.length;i++) {
uniqueRSN = uniqueRSN+“~”+lazyGrid.cells(rows[i],0).getValue();
}
var dataProcessorDelete = new dataProcessor(LazyLoading.jsp?command=update);
dataProcessorDelete.setTransactionMode(“POST”, true);
dataProcessorDelete.setUpdateMode(“off”);
dataProcessorDelete.init(lazyGrid);
dataProcessorDelete.sendData();
}

dataProcessorDelete.sendData(); not sending data to LazyLoading.jsp

Please check the above code and let me know, where i m wrong…
Thank You

Dataprocessor need to be initialized before changing data in grid.
Any action applied before dataprocessor’s init will be ignored.

i want to create two dataprocessor one is for delete and other is for update

lazyGridDataProcessor1 = new dataProcessor(LazyLoading.jsp?command=update);
lazyGridDataProcessor2 = new dataProcessor(LazyLoading.jsp?command=delete);

in case of update it is working fine but in case of delete sendData() is not working…

It is a bad idea - to have different dataprocessors for different kind of operation, because they will monitor ALL changes , and send them all to the server side.

The info about operation type is included in the sent data, so you can use single dataprocessor and single script, just run different branches of logic, based on the operation type.