Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dmitry on Sep 17, 2008 04:01
open dhtmlx forum
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?
Answer posted by dhtmlx support on Sep 18, 2008 01:55
submitOnlyChanged doesn't work with dataprocessor. it works with submition of data with HTML Form submit (you can learn here more about it: http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Form_integration.html#grid_art_htmlform). dhtmlxDataProcessor always sends just changed data.