Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Silva on Sep 17, 2008 05:39
open dhtmlx forum
Saving Data to XML with Standard Version of dhtmlxGrid ... is it possible?

I was just curious if it is possible to save data from the grid to xml on my server with the standard version of dhtmlxGrid?

I have a page that will have anywhere from 10 to 20 rows with 4 columns. I don't want much more functionality that just being to update that list of items once or twice a month.

Thank you in advance. If I can't save without purchasing the Pro version, I just want to know so I don't waste days trying to figure out how.

Your product is pretty awesome, and I would love to use it, but just can't afford or do I have the need for the Pro version.
Answer posted by dhtmlx support on Sep 18, 2008 02:17
Of course you can. The best approach in most cases is to use event onEditCell. It has 3 stages - 0-before start[can be canceled if returns false],1-editor opened,2-editor closed. Stage index is passed to evant handler as first argument, ID of row as second one and cell index as third one. On 2-nd stage you also get 2 additional arguments - new and old value of the cell. So you can pass new value togather with rowId and cell index to the server and save it there. This is the main idea - you can extend it with various modifications and enhancements (what is in general dhtmlxDataProcessor does)