save on xml?

Hello,

Can I save/add/delete records directly to xml? I have a small table that the source is xml. I don’t need mysql. Therefore I cannot use the connector to save/update the table after I alter/add/delete rows.

I don’t want to go through a server-side for my table. I just want to load an xml source and be able to add/update/delete records.

Can that be done?

thank you

You can serialize grid to XML format, send serialized string to server side and save it in xml file. Please find more information about serialization here docs.dhtmlx.com/doku.php?id=dhtm … ialization
docs.dhtmlx.com/doku.php?id=dhtm … ntegration

I’m getting doesn’t support this property or method.

this is my code pls help me…

var mygrid;
function doInitGrid() {
var gridbox = document.getElementById(’<%=gridbox.ClientID %>’);

         mygrid = new dhtmlXGridObject(gridbox);
         mygrid.setImagePath("codebase/imgs/");
        mygrid.attachHeader("ID,Code,Name,Route Name,Limit,Period",["text-align:left;","text-align:left;","text-align:left","text-align:left","text-align:right","text-align:right"]);   
     mygrid.attachHeader('#rspan,#rspan,#select_filter,#select_filter,#numeric_filter,#rspan');
        mygrid.setHeader("<div style='width:100%; text-align:center;'>Retailer</div>,#cspan,#cspan,<div style='width:100%; text-align:center;'></div>,<div style='width:100%; text-align:center;'>Credit</div>,#cspan");
        mygrid.setInitWidths("60,60,*,150,60,60");                    
        mygrid.setColAlign("left,left,left,left,right,right");            
        mygrid.getCombo(5).put(2, 2);
        mygrid.setSkin("light");
       mygrid.setColSorting("int,int,str,str,int,int");
       mygrid.setColTypes("ro,ro,ed,ed,price,price");
       mygrid.enableDragAndDrop(true);
       mygrid.init();
        mygrid.clearAll();
        mygrid.parse(document.getElementById('<%=xml_txtbx.ClientID %>').value);
        }
        
     function serializeGrid() 
     {
        mygrid.setSerializationLevel(true, true);
        var myXmlStr = mygrid.serialize();
        document.getElementById('<%=Textarea1.ClientID %>').value = myXmlStr;
     }

Regards,
ramsivaa

Serialization is available in PRO version only

pls explain me how to get grid value into my textarea.
like this (document.getElementById(’<%=Textarea1.ClientID %>’).value = mygrid;)
is it any possible?

Regards,
ramsivaa

You can get value of necessary cell in grid with getValue() method:

mygrid.cellById(row_id,cell_index).getValue();

BTW the most simplest way to save values from grid at Standard version is to use DataProcessor on the client side and Connectors on the server side. Please check Connectos video here dhtmlx.com/docs/products/dhtmlxC … ndex.shtml

Thanks for your reference