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