Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Bruno on Jun 17, 2008 04:22
open dhtmlx forum
Questions about the grid

Hi,

Some question before (perhaps) buying dhtmlxGrid

1) After moving columns, grouping, ... can the user save the grid by sending it to the server ? And after that, can he reload the grid and retrieve it as he save it ?

2) Can he save the grid as just HTML code or XML code (usefull il we want to display datas as graphs) ?

3) Is it possible to have more one level for grouping coluims ?

Thanks for your answers
Answer posted by Support on Jun 17, 2008 05:53
>>1) After moving columns, grouping, ... can the user save the grid by sending it to the server
Grid can be serialized back to XML, which can be used later to load grid with data. Serialized XML allows to include info about column order - so moved column can be stored. Grouping is fully client side operation it doesn't affect serialization and can't be stored in such way.

Also the grid allows to store current order of column in cookies
    http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/rows_columns_manipulations/pro_column_states_save.html


>>2) Can he save the grid as just HTML code or XML code
Grid can be serialized to XML as
    var xml= grid.serialize()
or as CSV
    var csv = grid.serializeToCSV();

>>3) Is it possible to have more one level for grouping coluims ?
The dhtmlxGrid not purposed for such use-case, but you can look at dhtmlxTreeGrid which can have unlimited levels of nesting ( and the structure of nesting included in serialization )
    http://dhtmlx.com/docs/products/dhtmlxTreeGrid/index.shtml