View Full Version : Combobox and HTML items
LoKiDemon
9 Jul 2008, 12:47 AM
Hello.
I have a problem with my combobox.
My Combobox options are in HTML encoding, but combobox field don't support them.
So when I click on an option, my field show HTML code instead of text.
How can I filter my values correctly ? Thanks!
http://img339.imageshack.us/img339/1908/cbboxhtmlproblemfi6.th.jpg (http://img339.imageshack.us/my.php?image=cbboxhtmlproblemfi6.jpg)
russe_m
17 Jul 2008, 9:37 AM
Hi,
I have the same problem, I need to use "& nbsp"
LoKiDemon
22 Jul 2008, 12:50 AM
HELP ! TT_TT"
tigersubu
30 Jul 2008, 6:06 PM
You can find html (http://chakrabarty.com/pp_editable_dropdown.html) code for COMBOBOX (http://chakrabarty.com/combobox.html) in HTML (http://chakrabarty.com/combobox.html) at the following links. It is an Editable (http://chakrabarty.com/pp_editable_dropdown.html) DropDown (http://chakrabarty.com/pp_editable_dropdown.html) Listbox (http://chakrabarty.com/pp_editable_dropdown.html) with any one select (http://chakrabarty.com/pp_editable_dropdown.html) option (http://chakrabarty.com/pp_editable_dropdown.html) as Editable (http://chakrabarty.com/pp_editable_dropdown.html) (like a textbox (http://chakrabarty.com/pp_editable_dropdown.html) ) and the rest as readonly.
http://chakrabarty.com/pp_editable_dropdown.html
http://chakrabarty.com/combobox.html
russe_m
4 Aug 2008, 5:22 AM
Finally I use template in combobox. I separate the combobox options, prefixe and text.
In the field I only show the "text". So no HTML encoding in my combobox field.
this.itemMenus = new Ext.data.SimpleStore({
fields: ['value', 'text', 'prefixe'],
data: []
});
new Ext.form.ComboBox({
name: 'type',
editable: false,
store: this.itemMenus,
displayField: 'text',
valueField: 'value',
allowBlank: false,
mode: 'local',
triggerAction: 'all',
tpl: new Ext.XTemplate(
'<tpl for=".">',
'<div class="x-combo-list-item">',
'<span>{prefixe}</span>',
'<span>{text}</span>',
'</div>',
'</tpl>'
)
});
LoKiDemon
8 Aug 2008, 4:42 AM
Excellent russe_m !
It works!
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.