Combo box items tool tip not displayed
Posted
by SriniWeb
on Stack Overflow
See other posts from Stack Overflow
or by SriniWeb
Published on 2009-11-25T00:45:57Z
Indexed on
2010/03/31
20:23 UTC
Read the original article
Hit count: 275
extjs
Hello,
I have written a combo box populated with items in ExtJs framework. I could not able to get the tooltips when the user hovers over the items.
Below is the code:
$formPanel .= " new Ext.form.ComboBox({
tpl:'<tpl for =\".\"><div ext:qtip=\"{abbr}\" class=\"x-combo-list-item\">{state}</div></tpl>',
id:'type_blackout_weekly',
store: sstore,
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true,
forceSelection: true,
width:135
}),";
var statedata = [
['AL', 'Alabama'],
['AK', 'Alaska'],
['AZ', 'Arizona'],
['WV', 'West Virginia'],
['WI', 'Wisconsin'],
['WY', 'Wyoming']
];
var sstore = new Ext.data.SimpleStore({
fields: ['abbr', 'state'],
data : statedata
});
Any guidance is highly appreciated.
© Stack Overflow or respective owner