PDA

View Full Version : Tooltip on disabled TextField?



mm_202
6 Jun 2010, 10:39 AM
Dear Forum,

Im trying to get a tooltip to show up on a disabled form textfield, has anyone had to do this?
In case its my code, here is the snippet:



items:[
{name:'rebateamt', fieldLabel:'Cust Rebate', disabled:true, listeners:{render:function(){
AddToolTip(this,'Retail Customer Rebate');
}}},
...
]



var AddToolTip = function(obj,ttext)
{
if(!obj || !obj.id) return;
obj.tip = new Ext.ToolTip({target:obj.getId(), trackMouse:false, html:ttext});
};

Animal
6 Jun 2010, 1:59 PM
What does disabled have to do with it?

If you want tooltips on several Fields, use a DataTip

mm_202
7 Jun 2010, 8:45 AM
My tooltips show up fine on non-disabled form fields (I think that you may of misunderstood my question/issue);
but regardless, your DataTip fixed my problem, thanks Animal! :D