Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rajani on Apr 29, 2007 08:58
open dhtmlx forum
I have combo box populated from an ajax call. but the combo box size is the same as the column so the options are not completely seen. Can I set the editor to default to the widest option available?


Answer posted on May 05, 2007 15:47
Can be done only by customization exCell code

In case of "co" or "coro"
You can check dhtmlxGridCell.js , exCell_co object, edit function - it is generate edit view, next line
     this.list.style.width=this.cell.offsetWidth+"px";
controls the width of options list


In case of "combo" (dhtmlxCombo) - it is not supported in current version, planed to be added in next one. Currently you can also customize code
dhtmlxGrid_excell_combo.js, next line control widht of created select box
    this.obj = new dhtmlXCombo(this.cell,"combo",this.cell.offsetWidth-2);

Answer posted by radyno (Support) on Dec 03, 2014 16:25

If you haven't found the needed information there and still looking for a solution, you will find the additional help checking php javascript enabled and vault files.