Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mark on Dec 09, 2008 15:16
open dhtmlx forum
sAVING dATA

I don;t know why i cannot wrap my head around this. If I create a tree or grid with checkboxes, how do I save the data so that the next time I come back it has the checkmark in the box I checked. I am not a programmer but know the concept. Do i just use php? (I am most familiar with this but not with saving data yet) with "get"?

I want to use your tree/table as a todo list. It's a set list with a thousand or so columns and about300 rows. If I get it to work, I can get my boss to pay up :)


Thanks I appreciate any help,
MARK
Answer posted by Support on Dec 10, 2008 01:44
>>It's a set list with a thousand or so columns and about300 rows.
While cout of row is pretty small, the such big count of column will be overkill. Result grid will render very slow for such wide structure.

>>If I create a tree or grid with checkboxes, how do I save the data
In case of grid , you can use dataprocessor or form integration for data saving,
      http://dhtmlx.com/docs/products/dhtmlxGrid/samples/dataprocessor/savedata_grid.html?un=1228902218000
      http://dhtmlx.com/docs/products/dhtmlxGrid/samples/interaction_other_components/pro_form.html?un=1228902236000
the state of checkboxes can be defined in XML, so when user load the same data second time, it can already contain preselected checkboxes from last time. 

In case of tree - the list of checked items can be received through js api, but there is no ready to use saving functionality


Also, for both components , state can be serialized back to XML, which will contain checkbox state and can be used to loading , next time when user come back. 
Answer posted by Mark on Dec 10, 2008 03:19
This is Great. Really Appreciate it. As far as the 1000 columns, I see your point. Using the Tree+grid would be ideal. I could split it into sub topics. I am working on placing a grids into a tabbed box for now.
Thanks for the info on saving the data. I will read up on it. Great service and product you have hear. I will blog about it soon.
Answer posted by Support on Dec 10, 2008 03:42
>> I am working on placing a grids into a tabbed box for now.
http://dhtmlx.com/docs/products/dhtmlxTabbar/samples/interaction_other_components/tab_dhtmlx.html?un=1228908773000

If you are using layout , grids can be attached directly to tabs through
    var tb=layout.cells(a).attachTabbar();
    tb.addTab("some","text","100");
    var grid = tb.cells("some").attachGrid();
Answer posted by Mark on Dec 10, 2008 07:32
Great. I will try that. Thanks Again.