Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Richard on Nov 09, 2009 17:03
open dhtmlx forum
not getting grid fields back w/i form section

Hi,

I'm adding a reference to /dhtmlxGrid/codebase/ext/dhtmlxgrid_form.js

However, I'm not seeing the data come back to the server. I'm logging everything that comes back on the post and the form fields are not there.

Is there anything special that I need to do?

The grid is instanced within the form tags.

Thanks,
Richard
Answer posted by Stanislav (support) on Nov 10, 2009 01:26
Are you sending data back by submit button, or by using form.submit() command?
The extension is purposed for the firs use-case and may fail in the second case. 
You can try to use the code as

     grid.parentFormOnSubmit(); //will add data from the grid to the form
     form.submit();