Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ramya on Oct 07, 2008 02:15
open dhtmlx forum
submitOnlyChanged(true)

Hi,

I am trying to pass all grid values that have been changed, through a form. I have included the _form.js file and have built the grid inside the FORM tags.
I have then used the following function:

function saveChanges()
{
alert("here");
mygrid.submitOnlyChanged(true);
mygrid.formCreateInputCollection();
document.Adjustments.action="wp.jsp";
document.Adjustments.submit();
}

But despite the boolean being True in submitOnlyChanged, all grid values, whther modified or not, are passing to the next page.

Is there anything else we have to do besides the file inclusion and grid being built inside the form?

Answer posted by Support on Oct 07, 2008 03:16
The code which you are using is correct, and must send only changed values. ( the same code works correctly in local samples )
Which column types you are using in grid ? ( it possible to create custom excell which will be always treated as changed , but common cell types must not cause any problems )