I am not able to save the data to database. I have added the reference to dhtmlxdataprocessor.js file.
function editOnRowSelect() {
var selectedRow = mygrid.getSelectedRowId();
document.getElementById('logBox').innerHTML = "Selected Row: " + selectedRow;
}
mygrid = new dhtmlXGridObject('mygrid_container');
mygrid.setImagePath("codebase/imgs/");
mygrid.setColAlign("left,right,right");
mygrid.setImagePath("/Images/");
mygrid.attachHeader("#text_filter,#text_filter,#text_filter,#select_filter");
mygrid.setColSorting("str,str,str");
mygrid.setInitWidths("100,100,100,100,100,100,100,100,100,100");
mygrid.enableHeaderMenu();
mygrid.enableEditEvents(false, true, false);
mygrid.setSkin("dhx_skyblue");
mygrid.init();
mygrid.loadXML("TestEmp.xml");
myDataProcessor = new dataProcessor("TestEmp.xml");
myDataProcessor.setTransactionMode("GET", true);
myDataProcessor.setUpdateMode("off");
myDataProcessor.init(mygrid);
</script>
Please let me know what is wrong with this code and how can I save the data all at once (on button click)