Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Christian Pouchoulen on Dec 04, 2008 08:54
open dhtmlx forum
Does the grid have any internal form?

Hello,

I just downloaded the GPL version and I am playing with the grid.

How do i send all the grid's content to the server using a form?
Does the grid have an internal form?
How do I get all the grid's content and send it to the server?
Do I have to create an external Form and just before submiting get all the values from the grid and use a hidden control?

I have something like this:

...
function save_data(){            
document.forms[0].data.value=somethingToGetTheModifiedValuesFromTheGrid(XXXXX);
document.forms[0].Submit();
}
...

-----------------------------
<div id="mygrid_container" style="width:600px;height:150px;"></div>
<input type="button" value="save" onclick="save_data()">
<form method="POST" action="ejemplo.php">
<input type="hidden" name="data" value="">
<form>        
Answer posted by Support on Dec 04, 2008 09:02
>>How do i send all the grid's content to the server using a form?
Can be done through form integration extension
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Form_integration.html#grid_art_htmlform

>>Does the grid have an internal form?
Grid has not any internal form, but allows inline editing of cell values.


>>How do I get all the grid's content and send it to the server?
Can be done through serialization ( PRO version supports serialization to XML and CSV, standard to CSV only ) 

>>Do I have to create an external Form and just before submiting get all the values from the grid and use a hidden control?
Grid can done it automatically through above mentioned extension.
Api of grid allows to get data so this scenario can be implemented as well.