Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Librado S on May 19, 2009 20:04
open dhtmlx forum
SubmitOnlyChanged

Hi,

simple question here. I'm using SubmitOnlyChanged along with a form so that only those cells that are changed are passed through the form. The problem I'm getting is that it passes only the cell. Is there any way to pass an entire row if one or more cells within that row are changed?

Thanks

Answer posted by Support on May 20, 2009 04:05

Unfortunately there is no such option, but you can workaround issue by adding next code to the grid intialization


grid.attachEvent("onEditCell",function(stage,id,ind){
     if (stage == 2 )
             this.forEachCell(id,function(el){
                  el.cell.wasChanged=true;
             })
     return true;
});

With such code, after any cell inside row will be change, all other cells in the same row will be marked as updated - so, in case of form submit, all row will be sent to server side. 

Answer posted by Librado S on May 20, 2009 06:16
This is great! thank you so much.