DP & Grid: Row updated only one time

Hello,

I have a Grid with a dp attached in manual update mode.
The update works fine for the first time when I change some cells in a row.

But after the first update, I can change some cells in the same row but the “update event” wont get triggered anymore. Updating another row is working but also only one time.

Here is my Code:

Grid and DP initialisation:

var mygrid;
var dp = new dataProcessor("/parser.php?action=customers_update_row");

function doInitGrid(){
  	mygrid = new dhtmlXGridObject('customerList');
	mygrid.setImagePath("codebase/imgs/");
	mygrid.setHeader("Firstname,Lastname,Company,Vat-ID,Street,Zip,City,Country,E-Mail,Phone,Login",null,["text-align:center;","text-align:center;","text-align:center","text-align:center","text-align:center","text-align:center","text-align:center","text-align:center","text-align:center","text-align:center","text-align:center"]);//set column names
	mygrid.setColumnIds("firstname,lastname,company,vat,street,zip,city,country,email,phone,login");
	mygrid.setInitWidths("100,100,100,80,100,50,100,100,140,100,53");
	mygrid.setColAlign("left,left,left,right,left,center,center,center,center,center,center");
	mygrid.setColTypes("ed,ed,ed,ed,ed,ed,ed,ed,ed,ed,ed");
	mygrid.setColSorting("str,str");
	mygrid.init();
	mygrid.setSkin("dhx_black");
	mygrid.loadXML("/parser.php?action=getList");
	
	dp.setTransactionMode("POST"); 
	dp.enableDataNames(true);
	dp.setUpdateMode("off");
	dp.init(mygrid);
}

And the update function attached to a button:

function customers_update(){

dp.sendData();

}

Regards, Thomas

Check the server side response, it must be valid xml, with valid sid attribute.
If response is invalid, client side will block any further data saving operations for the same row.

If you are using custom server side code for data saving - be sure that it returns result wit text/xml content type and there are no white spaces before <?xml tag.

Hi,

thank you for you answer.

The server result is exactly:

<?xml version="1.0" encoding="utf-8"?>

Bevore this output, a header is sent:
header(“Content-type: text/xml”);

I there something wrong/missing with the output ?

Regards, Thomas

Hi,

the response from the action was missing, as example:

The complete response is now:

<?xml version="1.0" encoding="utf-8"?>

Its working now, thank you for pointing me that way.

Regards, Thomas