Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by j.lagos on Feb 04, 2009 02:07
open dhtmlx forum
Grid conflictions

Using the PRO version, I tried the XML grid config as:

<cell xmlcontent="1" source="test.php?task=ShopsList" auto="true" cache="true" type="combo" text="M">M</cell>

The test.php is called and the receiving string is:

<?xml version="1.0" encoding="UTF-8"?><option value="M">Main</option><option value="S">Special</option
><option value="B">RptOnly</option>

but I get the following error: Incorrect XML!
This is the first problem.

There is another confliction which is related:
In order "combo" type is recognizable, codebase/excells/dhtmlxgrid_excell_combo.js must be included, but during the program is running, if another Grid (normaly created by js code) is loaded with: mygrid.parse(myarray,"jsarray"), array is loaded correctly into the mygrid and at the end an error breaks the program: Incorrect XML!

I don't understand the reason XML is called!

From the Firebug I copied the following:

docObj is undefined
doXPath()("//column", undefined, undefined, undefined)dhtmlxcommon.js (line 71)
fillColumnCombos()(Object entBox=div#dhxGridObj_MatUijQNGYB2.gridbox, undefined)dhtmlxgr..._combo.js (line 16)
edit()()dhtmlxgr..._combo.js (line 9)
z()()dhtmlxgrid.js (line 4611)
callEvent()()dhtmlxgrid.js (line 4591)
parse()(undefined, null, "jsarray")dhtmlxgrid.js (line 5212)
startLoadingOrders()playthread.php (line 1517)
readBack() // --------this is mine called after AJAX call returns and executes the parse -------

The mygrid has no events attached and no Combos. If I remove the include file dhtmlxgrid_excell_combo.js, mygrid is working fine.

Can you get any conclusions from all that (JAZZ)?

Thanks,
John


Answer posted by Support on Feb 04, 2009 05:48

>> but I get the following error: Incorrect XML!

The provided xml is really incorrect. The correct is similar to the following:


<?xml version="1.0" encoding="UTF-8"?>
 <complete>
  <option value="M">Main</option>
  <option value="S">Special</option >
  <option value="B">RptOnly</option> 
 </complete>

We sent the sample by email.

If  the problem still persists, please provide the sample where it can be reproduced at support@dhtmlx.com

Answer posted by j.lagos on Feb 04, 2009 05:54

Greate!!! working!

Thank you