Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gayathri on Jul 18, 2008 07:13
open dhtmlx forum
Form submission

Hi

I have a grid. I want to submit all the data in the grid at once. Is there a way i can get all the data in an array or something? currently i see there is an API to get list of row ids. Is there something similar to select all the row data at once?

 

Thank you

Answer posted by Support on Jul 18, 2008 08:01
There is no api to get all data at once as js structure
You can
a) serialize all data back to XML
    var xml = grid.serialize();
b) itterate through grid to access data
    grid.forEachRow(function(id){
       grid.forEachCell(id,function(c){
             alert(c.getValue());
        })
    });

Also grid has native support for integration inside FORM
    http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_form.html?un=1216394447000