Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by zoomsthru on Sep 04, 2009 15:32
open dhtmlx forum
DataProcessor: sendData() not sending row values

My dataProcessor code looks something like this:

myDataProcessor = new dataProcessor("content.jsp");
myDataProcessor.setUpdateMode("off");
myDataProcessor.init(myGrid);
myDataProcessor.enableDataNames(true);
...

I am using the setUpdated to mark changed rows:
myDataProcessor.setUpdated(rowId, true);

And at one point, I use sendData():
myDataProcessor.sendData();

However, my jsp file is not getting the cell values of the modified rows. The modified rows are correctly being identified and are sent to the server, but not the cell values. I used TCPMon to monitor the data being sent, and this is what it showed:
GET /my-app/content.jsp?gr_id=918&!nativeeditor_status=updated HTTP/1.1

Is there something I am doing incorrectly? Thanks in advance.
Answer posted by Support on Sep 07, 2009 03:58
You are using
    myDataProcessor.enableDataNames(true); 
Which means grid will use column IDs for data naming. 
So you need to use 
          grid.setColumnIds("some,some,...")
or not use enableDataNames , in such case names c0...cN will be used for columns