Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DJay on Dec 02, 2009 12:32
open dhtmlx forum
dhtmlxGrid with dhtmlxCombo not listing all the options

 

I am using dhtmlxGrid with dhtmlxCombo as one of the column type. I am loading dhtmlxGrid data, column headings  and column types from XML configuration.

When dhtmlx is lodded, I want to see the dhtmlxCombo with all the options availalbe so that I can select one of them. But when I double click the grid cell that has combo,  it shows only one value.

 

Any idea of what I may have missing?

Below is my xml configuration that I load for my dhtmlxGrid

<rows>

  <head>
  <column width="20" type="ro" align="left" sort="str">Wire Code</column>
  <column width="20" type="ro" align="left" sort="str">Org. Name</column>
  
  <column width="20" type="combo" editable="false" source="" align="left" sort="str" >Status
      <option value="IN USE">IN USE</option>
      <option value="AVAILABLE">AVAILABLE</option>
      <option value="CLEANSING">CLEANSING</option>
      <option value="RESTRICTED (DO NOT USE)">RESTRICTED (DO NOT USE)</option>
   </column>
   <column width="20" format="%m/%d/%Y" type="dhxCalendar" align="left" sort="str"  >Effective Date</column>
   <column width="20" type="link" align="left" sort="str">Action</column>
  
     <settings>
            <colwidth>%</colwidth>
     </settings>
    </head>

  <row id="1001">
  <cell>KB</cell>
  <cell>Manchester, NH</cell>
  <cell>IN USE</cell>
  <cell>05/01/1998</cell>
  <cell>History^javascript:alert("history");^_self</cell>
 </row>


</rows>

 

When I configure my XML as below to load the options values for dhtmlxCombo, then it works fine.  I dont what to configure my XML as below since it requires to XMLS one for grid and another for dhtmlxCombo values.

 

<column width="20" type="combo" editable="false" source="data.xml" align="left" sort="str" >Status </column>

 

Please help.

 

 

 

Answer posted by Alex (support) on Dec 03, 2009 01:45

Hello,

xmlcontent attribute should be added if options are defined in the grid xml:

<column width="20" type="combo" editable="false" source="" align="left" sort="str" xmlcontent="1">....

Please see the dhtmlxGrid/samples/13_interaction_other_components/01_pro_combo.html sample in grid package