DHTMLX Grid - Dop Down List with 3 static values - data from

Hi,





1. how can i set a dropdown list in my grid with 3 static values



Normal --> Value = 0

Interieur --> Value = 1

Exterieur --> Value = 2



2. i write my values of the grid in a database.

if i read out the database for the dropdown list a value comes with a 2, for example. Than “Exterieur” must be checked.

How can i do this.



I test it but i loose at point 1. :wink:



Can you help me please.



Greetings BjT



PS: Sorry for my english. Im german.

If you are using “co” or “coro” column type you can define values as

    grid = new…
    var c=grid.getCombo(index);
    c.put(0,“Normal”);
    c.put(1,“Interieur”);
    c.put(2,“Exterieur”);
    …
where index - zero based index of necessary column
and in data XML you can specify it as

      
       2

It will be rendered as “Exterieur”