Hi,
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
dhtmlxcommon.js
dhtmlxgrid.js
dhtmlxgridcell.js
Xcombo files
dhtmlxcombo.js
It will be great if some one help us with the solution.
XML:
<?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>
</row>
</rows>