Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Florante Kho on Sep 13, 2009 02:05
open dhtmlx forum
combo on a cell

Hi,

I have been trying to add a simple combo box on a single cell but no avail, the selection does not render. Some cell has different drop down list depends on the context.
here is a sample of my xml generated

<?xml version="1.0" encoding="UTF-8"?>
<rows>
    <head>
        <column width="100px" type="ro" color="#D4D0C8" sort="na" align="" ></column>
        <column width="100px" align="" ></column>
    </head>

    <row id="1-address1">
        <cell>Address Line 1</cell>
        <cell type="ed"></cell>
    </row>
    <row id="1-address2">
        <cell>Address Line 2</cell>
        <cell type="ed"></cell>
    </row>
    <row id="1-city" >
        <cell>City</cell>
        <cell type="ed"></cell>
    </row>
    <row id="1-State" xmlcontent="2">
        <cell >State</cell>
        <cell >
<complete>
<option value='AL'>Alabama</option>
<option value='AK'>Alaska</option>
<option value='AZ'>Arizona</option>
<option value='AR'>Arkansas</option>
<option value='CA'>California</option>
<option value='CO'>Colorado</option>
<option value='CT'>Connecticut</option>
<option value='DE'>Delaware</option>
<option value='FL'>Florida</option>
<option value='GA'>Georgia</option>
<option value='HI'>Hawaii</option>
<option value='ID'>Idaho</option>
<option value='IL'>Illinois</option>
<option value='IN'>Indiana</option>
<option value='IA'>Iowa</option>
<option value='KS'>Kansas</option>
<option value='KY'>Kentucky</option>
<option value='LA'>Louisiana</option>
<option value='ME'>Maine</option>
<option value='MD'>Maryland</option>
<option value='MA'>Massachusetts</option>
<option value='MI'>Michigan</option>
<option value='MN'>Minnesota</option>
<option value='MS'>Mississippi</option>
<option value='MO'>Missouri</option>
<option value='MT'>Montana</option>
<option value='NE'>Nebraska</option>
<option value='NV'>Nevada</option>
<option value='NH'>New Hampshire</option>
<option value='NJ'>New Jersey</option>
<option value='NM'>New Mexico</option>
<option value='NY'>New York</option>
<option value='NC'>North Carolina</option>
<option value='ND'>North Dakota</option>
<option value='OH'>Ohio</option>
<option value='OK'>Oklahoma</option>
<option value='OR'>Oregon</option>
<option value='PA'>Pennsylvania</option>
<option value='RI'>Rhode Island</option>
<option value='SC'>South Carolina</option>
<option value='SD'>South Dakota</option>
<option value='TN'>Tennessee</option>
<option value='TX'>Texas</option>
<option value='UT'>Utah</option>
<option value='VT'>Vermont</option>
<option value='VA'>Virginia</option>
<option value='WA'>Washington</option>
<option value='WV'>West Virginia</option>
<option value='WI'>Wisconsin</option>
<option value='WY'>Wyoming</option>
</complete>
</cell>
    </row>
    
    
    <row id="1-country">
        <cell>Country</cell>
        <cell type="ed"></cell>
    </row>
    <row id="1-zipcode">
        <cell>Zip Code</cell>
        <cell type="ed"></cell>
    </row></rows>
Answer posted by dhxSupport on Sep 14, 2009 02:22
To render combo box correctly one of your cells should has "combo" eXCell type. Note this type available in PRO version only. 
Please find more information here http://dhtmlx.com/dhxdocs/doku.php?id=dhtmlxgrid:how_to_use_new_excell_combo
And example here http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/13_interaction_other_components/01_pro_combo.html