DHTMLXcombo with DHTMLXgrid gives script error.


We have the professional license for DHTMLXgrid 2.5 and we are integrating DHTMLXCombo in it. The grid is loaded from the xml. The column type we have used is combo. But the page is not loading it is giving “Object does not support this property or method” error in dhtmlxgrid_excell_combo.js at the below line

columns = grid.xmlLoader.doXPath("//column",xml) // Script Error thrown here.

We have included the below files to our jsp.

Xgrid files

Xcombo files

It will be great if some one help us with the solution.


<?xml version="1.0" encoding="UTF-8"?>
<rows pos="200" total_count="1" >
<column id="City" width="102" type="combo"  sort="str" xmlcontent="1" source ="" align="left" > City
<option value="Bangalore">Bangalore</option>
<option value="Calcutta">Calcutta</option>
<option value="Chennai">Chennai</option>
<option value="Coimbatore">Coimbatore</option>
<option value="Delhi">Delhi</option>
<option value="Mumbai">Mumbai</option></column>
<column id="StreetPrefix" width="78" type="combo"  sort="str" xmlcontent="1" source ="" align="left" > Prefix
<option value="N">N</option>
<option value="S">S</option>
<option value="E">E</option>
<option value="W">W</option>
<option value="NW">NW</option>
<option value="NE">NE</option>
<option value="SW">SW</option>
<option value="SE">SE</option></column>
<column id="StreetNumber" width="78" type="edtxt"  sort="int"  align="right"  > Street #</column>
<column id="Street" width="117" type="edtxt"  sort="str"  align= "left" > Street Name</column>
<row id="row0_1" onClick="" onDblClick="" >
<cell type="combo" id="City" defaultValue=""  columnType="string"  onChange=""  oldValue="Westwood"  class="dataentry MandatoryField" >Westwood</cell>
<cell type="combo" id="StreetPrefix" defaultValue=""  columnType="string"  onChange=""  oldValue="E"  class="dataentry" >E</cell>
<cell type="edtxt" id="StreetNumber"  columnType="int"  onChange="" defaultValue=""  class="dataentry"  maxLength="6"  onfocus="window.status='ValidStreet.StreetNumber'"  oldValue="" ></cell>
<cell type="edtxt" id="Street"  columnType="string"  onChange="" defaultValue=""  class="dataentry MandatoryField"  maxLength="40"  onfocus="window.status='ValidStreet.PropStreet'"  oldValue="Allwood" >Allwood</cell>

Have a look here:
dhtmlx.com/docs/products/doc … index.html and then ‘full’.

I miss … before and after column


Thanks for the reply. Sorry that i have missed the tags in my previous post. We do have that tags in the XML. Also if we change the column type to “cotxt” the XML works fine.

In one scenario we have more than 2000 records for a single combo field. When ever we load that page it is giving “Stop running the script” error. To avoid this we have decided to integrate XCombo in Xgrid so that we can implement dynamic loading even for Xcombo. But we are getting the above mentioned script error in dhtmlxgrid_excell_combo.js for “combo” type.

Error: Object does not support this property or method.

Could you please provide us the solution for the above issue?

We have got the license in Jan 2010, could you please let us know is it possible for us to raise the issue to dhtml support team?

Error: Object does not support this property or method.
Such issue may occur if one of the necessary files are not attached. Which method is not defined on your page?


The error is thrown at the below line in dhtmlxgrid_excell_combo.js file.
The name of the method is fillColumnCombos(grid, xml)

Error at
columns = grid.xmlLoader.doXPath("//column",xml);


What version of dhtmlxGrid and dhtmlxCombo are you using? Can you provide complete demo where we can reproduce this issue?