Hello,
I am trying to setup a grid (2 columns (ro,ro)) via XML but it fails all the time with the below error
guards_grid = leftSidebarLayout.cells('a').attachGrid();
guards_grid.setIconsPath('lib/imgs/');
guards_grid.loadXML("xmlData/locale/en_gb/guards_grid.xml");
guards_grid.enableContextMenu(guardsMenu);
guards_grid.attachEvent("onXLE", removeLoading);
guards_grid.attachEvent("onXLS", addLoading);
guards_grid.attachEvent("onRowDblClicked",guards_gridDblClick);
guards_grid.attachEvent("onRowSelect",guardsGridOnRowSelect);
The setup XML
[code]<?xml version="1.0" encoding='utf-8' ?>
ID2
Name
px
[/code]
The error is generated when i try to load database data with the below command
guards_grid.loadXML("get_guard_readonly.php");
The webservice XML
<?xml version='1.0' encoding='utf-8' ?>
<rows>
<row id='8100400035'>
<cell><![CDATA[8100400035]]></cell>
<cell><![CDATA[Test guard 1]]></cell>
</row>
</rows>
I want to setup the grid from XML and then load the database data via a webservice.
Is this possible?
thank you in advance