Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by couetbis on Oct 06, 2008 06:19
open dhtmlx forum
type combo in grid

Hi,
I have a little problem with type combo and insertColumn.
I load head with xml, then I insert column in first (index 0).

When I edit cell in combo column, combo data are not find because the method insert column are not move index in _col_combos (dhtmlxgrid_excell_combo.js). For example :
head :
<?xml version="1.0" encoding="ISO-8859-1"?>
<rows>
    <head>
        <column id="col1" width="400" type="ed" align="left" sort="na">libelle</column>
        <column id="col2" width="100" type="ed" align="left" sort="na">nom</column>
        <column id="col3" width="100" type="combo" editable="false" source="combo.xml"     align="left" sort="na">langue</column>
        <column id="col4" width="100" type="ch" align="center" sort="na">actif</column>
    </head>
</rows>

Combo column have index 2

A column are inserted in first, combo column have index 3 but _col_combos is not changed.

There is a bug or I have a bad use of grid ?

I note maybe another "error" or bad use in http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=4915&a=7896.

Answer posted by Support on Oct 06, 2008 07:08
Initial release of dhtmlxgrid 1.6 has known issue with combo collections and column moving|inserting. 
Issue already fixed in latest dev. code and will be released as part of oncoming update. 
If you need it ASAP - please contact us directly at support@dhtmlx.com and provide your reference number