Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dave Deniman on Nov 23, 2008 21:26
open dhtmlx forum
submit grid with form integration doesn't work from javascript

If I submit my grid with form integration it works fine as long as I use <input type="submit" /> button to execute the form submit. Grid changes are included in the submit as expected. BUT if I try to execute the exact same submit using a javascript function with something like document.forms.mygridform.submit(), the grid changes won't be included in the resulting GET request. Is there a fix for this, or must the form submit always be executed from <input type="submit" />
Answer posted by Support on Nov 24, 2008 01:51
If you submit form by javascript , be sure to add next js call

mygrid.parentFormOnSubmit(); //prepare grid for data sending
form.submit(); //submit form