custom XML on serialize()

I am using myGrid.serialize()

Instead of this XML format:

<?xml version="1.0"?>555004255.99Y

I need to create custom XML, such as:

<?xml version="1.0"?>5550042<cell id="itemPrice>55.99Y

How may I insert these cell ids?


The next appoach can be used

mygrid.cells(1,0).setAttribute(“id”,“itemNumber”); //you need not this code if original XML already contains id attribute

var data = mygrid.serialize();

for some reason, IDs are not incerted… anything else I should add? Thanks

OK, got it:  you have to use myGrid.xml.cell_attrs.push(“id”); at the end. It works now. Thanks!