Using Flexigrid with an xml formatted source how do you specify how the xml is formatted?
Posted
by stormist
on Stack Overflow
See other posts from Stack Overflow
or by stormist
Published on 2010-03-22T21:59:29Z
Indexed on
2010/03/22
22:01 UTC
Read the original article
Hit count: 333
I have my columns set as follows:
colModel : [
{display: 'column1', name : 'column1', width : 200, sortable : true, align: 'center'},
{display: 'column2', name : 'column2', width : 100, sortable : true, align: 'left'},
{display: 'column3', name : 'column3', width : 100, sortable : true, align: 'left'},
{display: 'column4', name : 'column4', width : 300, sortable : true, align: 'left'},
],
I set my data source to a url that returns xml. The xml is like this:
<?xml version="1.0"?>
<items_list>
<item>
<column1>BlahBlah</column1>
<column2>BlahBlah</column2>
<column3>BlahBlah</column3>
<column4>BlahBlah</column4>
</item>
<item>
<column1>BlahBlah</column1>
<column2>BlahBlah</column2>
<column3>BlahBlah</column3>
<column4>BlahBlah</column4>
</item>
</items_list>
How can I bind the grid to the xml datasource, it doesn't appear to recognize it as it is?
© Stack Overflow or respective owner