Vijaya436
30 Sep 2009, 5:36 AM
Hi all, I am trying to implement ToolTips to ComboBox. This is my code
function prepareAverageWorkExpCombo(emptyValueText) {
var averageWorkExpStore = new Ext.data.SimpleStore( {
fields : [ 'workExp' ],
data : Ext.data.workExp
});
Ext.QuickTips.init();
var averageWorkExpCombo = new Ext.form.ComboBox({
store: averageWorkExpStore,
displayField: 'workExp',
typeAhead: true,
hideLabel: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Any',
selectOnFocus: true,
resizable: true,
width: 100,
listeners: {
'change': comboBoxListener
}
});
var tt = new Ext.ToolTip({
target: averageWorkExpCombo, // getting the error here
title: 'Mouse Track',
width: 200,
html: 'This tip will follow the mouse while it is over the element',
trackMouse: true
});
return averageWorkExpCombo;
}
Can anyone help me out in this issue. Any small help will be of great help.
Thanks in Advance
function prepareAverageWorkExpCombo(emptyValueText) {
var averageWorkExpStore = new Ext.data.SimpleStore( {
fields : [ 'workExp' ],
data : Ext.data.workExp
});
Ext.QuickTips.init();
var averageWorkExpCombo = new Ext.form.ComboBox({
store: averageWorkExpStore,
displayField: 'workExp',
typeAhead: true,
hideLabel: true,
mode: 'local',
triggerAction: 'all',
emptyText: 'Any',
selectOnFocus: true,
resizable: true,
width: 100,
listeners: {
'change': comboBoxListener
}
});
var tt = new Ext.ToolTip({
target: averageWorkExpCombo, // getting the error here
title: 'Mouse Track',
width: 200,
html: 'This tip will follow the mouse while it is over the element',
trackMouse: true
});
return averageWorkExpCombo;
}
Can anyone help me out in this issue. Any small help will be of great help.
Thanks in Advance