I am using the free standard version of dhtmlxgrid. I have successfully added it to my website, but now I want to be able to save the data that I have edited back into the XML file.
Is this something that I will have to buy the Pro version to do? From all my research it looks like I would have to but I figure I should ask.
If not could I get some help with code to do that save.
Thanks a whole bunch in advance. I think I will buy this software in the future, but at the moment I can’t afford to buy the Pro version.
This is the code I am using right now, and I set it up from the basic guide that was provided in the download.
var mygrid;
function doInitGrid(){
mygrid = new dhtmlXGridObject(‘mygrid_container’);
mygrid.setImagePath(“codebase/imgs/”);
mygrid.setHeader(“Name,E-Mail Address,Territory,Ext”);
mygrid.setInitWidths(“200,215,215,70”);
mygrid.setColAlign(“left,left,left,left”);
mygrid.setSkin(“light”);
mygrid.init();
mygrid.loadXML(“reps.xml”);
}
function addRow(){
var newId = (new Date()).valueOf()
mygrid.addRow(newId,"",mygrid.getRowsNum())
mygrid.selectRow(mygrid.getRowIndex(newId),false,false,true);
}
function removeRow(){
var selId = mygrid.getSelectedId()
mygrid.deleteRow(selId);
}
===================
here is the HTML
<?php include("../includes/i_nav.php"); ?>
Add Row
Remove Row