Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ethan anwar on May 31, 2009 10:52
open dhtmlx forum
Save dhtmlxGrid with Connector?

Hi!
I am aware that this question might've been asked before but i searched your knowledge base and didn't find an exact answer.
I want to be able to save an xml file opened in dhtmlxGrid either automatically(after every change) or with a 'Save' button with a js onclick() command. From what i read this can be done with dhtmlxConnector which uses php.
So my question is: what is the minimal code required to be able to save an xml file opened in xhtmlGrid ?
Thank you in advance!
Answer posted by dhxSupport on Jun 01, 2009 01:35
You can save content of dhtmlxGrid using dhtmlxDataProcessor extention which is part of PRO version. Please see more information here http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Dataprocesor_usage.html#grid_art_dataprocessor
Answer posted by Support on Jun 01, 2009 01:37
You can grab connector's package , which contains related samples
http://dhtmlx.com/docs/download/dhtmlxConnector_php.zip

on client side, you will need to add 2 lines of code
    var dp = new dataProcessor("01_basic_connector.php");
    dp.init(mygrid);

where 01_basic_connector.php - path to server side connector file.