Categories | Question details Back To List | ||
DHTMLX Grid - Dop Down List with 3 static values - data from db must set one to selected 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. ;-) Can you help me please. Greetings BjT PS: Sorry for my english. Im german. Answer posted by Support on Feb 06, 2008 03:03 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 <row id="some"> <cell>2</cell> It will be rendered as "Exterieur" |