Thanks for you taking the time to review my question.
I am looking for your assistance in troubleshooting why data on grid is not loading. Here is a snippet of my code
[code] grid.setHeader(gridColumns.getHeaders());
grid.setInitWidths(gridColumns.getWidths());
grid.setColAlign(gridColumns.getAlignments());
grid.setColTypes(gridColumns.getColTypes());
grid.setColSorting(gridColumns.getColSortTypes());
grid.attachHeader(gridColumns.getAttachedHeaders());
grid.enableSmartRendering(true,2000,100);
grid.enableMultiselect(true);
…
grid.attachEvent(“onXLE”, function(grid_obj, count1) {
if (!this.getRowsNum()) {
this.addRow(this.uid(), “No records not found”);
}
else {
alert(“I am here”);
}
});
grid.loadXML("some.php", function(){
alert("done loading data");
});
[/code]
Data fetched by the “some.php” is extracted from an oracle database, the xml that is returned is here:
<rows total_count="1">
<row id="2">
<cell />
<cell />
<cell>2</cell>
<cell>12345</cell>
<cell>12345</cell>
<cell>ALL CUSTOMERS</cell>
<cell>9</cell>
<cell>Preferred (9)</cell>
<cell>9891</cell>
<cell>12</cell>
<cell>Andorra - Other (12)</cell>
<cell>IND</cell>
<cell>12345</cell>
<cell>12345</cell>
<cell>ALL CUSTOMERS</cell>
<cell>10</cell>
<cell>0</cell>
<cell />
<cell />
<cell />
<cell />
<cell>0</cell>
<cell>0</cell>
<cell>04-FEB-16</cell>
<cell>04-FEB-16</cell>
<cell>manish</cell>
<cell>manish</cell>
<cell>04-FEB-16</cell>
</row>
</rows>
RAW XML
<?xml version='1.0' encoding='iso-8859-1' ?><rows total_count='1'><row id='2'><cell><![CDATA[]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[2]]></cell><cell><![CDATA[12345]]></cell><cell><![CDATA[12345]]></cell><cell><![CDATA[ALL CUSTOMERS]]></cell><cell><![CDATA[9]]></cell><cell><![CDATA[Preferred (9)]]></cell><cell><![CDATA[9891]]></cell><cell><![CDATA[12]]></cell><cell><![CDATA[Andorra - Other (12)]]></cell><cell><![CDATA[IND]]></cell><cell><![CDATA[12345]]></cell><cell><![CDATA[12345]]></cell><cell><![CDATA[ALL CUSTOMERS]]></cell><cell><![CDATA[10]]></cell><cell><![CDATA[0]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[0]]></cell><cell><![CDATA[0]]></cell><cell><![CDATA[04-FEB-16]]></cell><cell><![CDATA[04-FEB-16]]></cell><cell><![CDATA[manish]]></cell><cell><![CDATA[manish]]></cell><cell><![CDATA[04-FEB-16]]></cell></row>
</rows>
I am not getting an incorrect XML error, and I don’t think there is anything wrong with this XML, I am not sure where/what else to look at, if you can point me in the right direction, that will be a big help.