PDA

View Full Version : ComboBox with icons



mcadirci
9 Jan 2011, 2:47 AM
Hello I am tring to create a combobox with icons. The problem is, the drop down list supports html tags but the combobox field does not.

I have made smt like attachment with setting display field
mu3.gif <img ALIGN=RIGHT src="/eMOVEWeb/icons/mu3.gif" height="16" />But IE does not render the combox as I expected. (Also at attached) IE shifts the icons down.
How can I fix this is there a combobox display field renderer or smt like that?
Thanks

skirtle
9 Jan 2011, 2:25 PM
Have you read these?

http://www.sencha.com/learn/Tutorial:Extending_Ext2_Class
http://www.sencha.com/learn/Tutorial:Writing_Ext_2_Plugins

tobiu
9 Jan 2011, 5:14 PM
edit: just noticed the links above lead to exactly your usecase (watched the titles only). so, you should read them, they are still up to date!

hi mcadirci,

a better approach would be to change the template (tpl-config) of the combo.
i did something similar with sakis lovCombo in Ext2:

www.sencha.com/forum/showthread.php?58412

not up do date but should point you into the right direction.


best regards
tobiu

mcadirci
10 Jan 2011, 12:56 AM
Hello,

I have read that document and tried at weekend but I can't made that work. Is there a working example of that example which runs with extJs 3.x?