Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prabhakara Gangi on Mar 12, 2008 18:16
open dhtmlx forum
DHTMLX Grid Dataprocessor sendData

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.
Answer posted by Support on Mar 13, 2008 01:51
>>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 )