Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kary Forth on Jul 29, 2008 08:38
open dhtmlx forum
After using mygrid.setColumnIds() to create grid, serialization return unusable XML

When I create my grid, I use my existing XML (not in the default format used by grid). This requires that I add the following line:

mygrid.setColumnIds("name,staffing,workstatus,deliveries,comments,equipment")

This generates the grid perfectly, but after the user makes changes to the data from within the grid, the XML returned by serialization is in the standard grid format.

For example,
<?xml version="1.0" encoding="ISO-8859-1"?>
<companydata>
<company name="Imasub Enterprises Inc.">
<name>Imasub Enterprises Inc.</name>
<staffing>2 laborers, 1 foreman</staffing>
<workstatus>On schedule</workstatus>...

Is being returned as,
<?xml version="1.0"?>
<rows>
<row id='Imasub Enterprises Inc.'>
<cell>Imasub Enterprises Inc.</cell>
<cell>2 laborers, 1 foreman</cell>
<cell>On schedule</cell>...

Is it possible for serialization to return XML from a grid in the same format that was used to generate the grid? Or would you recommend that I not use serialization to accomplish this?
Answer posted by Support on Jul 29, 2008 08:55
>>Is it possible for serialization to return XML from a grid in the same format that was used to generate the grid
Such feature currently not supported, grid can serialize only to native formats ( native XML format or CSV )