submitOnlyChanged(false)

Hello.



I need send all data from grid with data processor



mygrid = new dhtmlXGridObject(‘products_grid’);

mygrid.setImagePath(“codebase/imgs/”);

mygrid.setHeader(“Column A,Column B,Column C”);

mygrid.attachHeader("#text_filter,#text_filter,#text_filter");

mygrid.setColumnIds(“id1,id2,id3”);

mygrid.setInitWidths(“150,150,150”);

mygrid.setColSorting(“str,str,str”);

mygrid.setColAlign(“left,left,left”);

mygrid.setColTypes(“ed,ed,ed”);

mygrid.setSkin(“light”);

mygrid.init();

mygrid.splitAt(2);

mygrid.loadXML(“data.xml”);

mygrid.submitOnlyChanged(false); // <- I like all data (not only changed)

    

myDataProcessor = new dataProcessor(“update.php?q=partrequest&c=1”);

myDataProcessor.enableDataNames(true);

myDataProcessor.setUpdateMode(“off”);

myDataProcessor.setTransactionMode(“GET”);

myDataProcessor.init(mygrid);



but when I call myDataProcessor.sendData() it send only changed (I need all data from grid). Help me please, what I do incorrect?

submitOnlyChanged doesn’t work with dataprocessor. it works with submition of data with HTML Form submit (you can learn here more about it: dhtmlx.com/docs/products/dht … t_htmlform). dhtmlxDataProcessor always sends just changed data.