Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Jul 15, 2008 07:05
open dhtmlx forum
autoresize for combo in grid

i have used this
combo1 = mygrid.getCombo(1);
combo1.autoOptionSize=true;

yet , the options in the combo (witch are wider than the combo) are just partially visible . am i missing something?
Answer posted by Support on Jul 15, 2008 07:15
You are mixing two different functionalities, the autoOptionSize works with dhxmlCombo as cell editor
in same time the grid.getCombo is purposed to normal in-grid collections, such as co|coro excell.

In case of dhtmlxcombo as grid's editor you can use

combo1 = mygrid.getColumnCombo(1);
combo1.autoOptionSize=true;


If you are configuring combos from XML, this code must be run after XML loading.