Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Serhat on Sep 04, 2007 17:50
open dhtmlx forum
2 grids 2 tables

Hello there,
I would like to have 2 grids with different tables. Lets say I have check boxes on each grids to select certain rows and click a button to retreive selected rows from both grids? Can this be done?
My second question I guess I am not able to have a submit button to save changes. Is changes saved by edited cell ? Or can I have a button to save once all changes done with all cells?

Thank you in advance
Answer posted by Stanislav on Sep 04, 2007 19:37
You can create as many grids per page as necessary, each one will have separate data and settings.
>>nd click a button to retreive selected rows
var list=grid.getCheckedRows(index)

where index - index of column with checkboxes


>>I am not able to have a submit button to save changes.
Because grid is clientside component it can't save data on its own, but it can send changed data to server side. Just include grid inside form tag, and include dhtmlxgrid_form.js in your html page, on form submit all changed cells will be included in form data.