Hello,
I am trying to include the “combo” type in the dhtmlx grid. I keep getting a “loadXML error, Incorrect XML” when I try to load the combo box with data for the whole column. Below is my code and the xml file. I want to load all of the options into this column combo so the options are there for every row. I must be missing something, because it looks very straightforward: get the column combo object and call loadXML to load the xml, but for some reason it doesn’t work.
I have the pro suite version “dhtmlxSuite_v30_pro_110713”, but I also had this problem in version 2.5.
Here are the xml file I am trying to load and the code I am using to load it.
XML File:
<?xml version="1.0"?>
<complete>
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
<option value="5">five</option>
<option value="6">six</option>
<option value="7">seven</option>
<option value="8">eight</option>
<option value="9">nine</option>
<option value="10">ten</option>
</complete>
Grid Javascript:
...
TestGrid.setColTypes("ron,combo,edn");
TestGrid.init();
TestGrid.loadXML(xml/Data.xml);
TestCombo = TestGrid.getColumnCombo(1);
TestCombo.loadXML("xml/Test.xml"); //THIS IS WHAT GIVES THE ERROR
Please help me, I’ve wasted a whole day trying different things to get this resolved.
Thanks for your time