Hello,
I have dhtmlx grid data code in a jsp as given below.
mygrid.loadXML(“ws_schedules_grid_data.jsp”);
myDataProcessor = new dataProcessor(“updateSchedules.do”);
myDataProcessor.enableDataNames(true);
myDataProcessor.setUpdateMode(“off”);
myDataProcessor.defineAction(“error”, myErrorHandler);
myDataProcessor.setTransactionMode(“GET”);
myDataProcessor.init(mygrid);
Here, i have couple of questions as given below.
When i call myDataProcessor.sendData(), whall all data will be sent to the server? and what format it will be sent?
Will it send multiple rows of data at a time? How can access that information i.e. updated rows, deleted rows, inserted rows?
Thanks,
Gangi.
When i call myDataProcessor.sendData(), whall all data will be sent to the server? and what format it will be sent?
For each updated|inserted|deleted row separate request send ( this is default mode )
$_GET[“gr_id”] - ID of row
$_GET[“gr_pid”] - ID of parent row ( exist only in case of treegrid )
$_GET["!nativeeditor_status"] - operation ( can be “inserted”,“deleted”, any other value of absense of parameter must be threated as update operation )
$_GET[“c0”] - data of first column
…
$_GET[“cN”] - data of Nth column
Instead of c0…cN parameters, column’s IDs can be used ( dp.enableDataNames )