Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ivan Polak on Jan 17, 2008 01:28
open dhtmlx forum
dhtmlxCombo and multiline row

Hi!, please, it is possible to create a multiline (one item in comboxbox has two rows) in your dhtmlxCombo ? Your dhtmlxCombo is very good job, but i need multiline combobox with different CSS style for the first and the second row. thank you very much. Ivan
Answer posted by Support on Jan 17, 2008 03:34
There are two ways

a) complex way - combo allows to extend|implement new types of options, so in theory it possible to define any type of option.
       you can redefine dhtmlXCombo_defaultOption.prototype.render - which renders option view

b) simple way - combo accepts any HTML as label text so you can use code similar to next
    combo.addOption('value','<div>Line1</div><div>Line2</div>');