PDA

View Full Version : Button not showing Tooltip text when mouse pointer hovers over it



sreenija
7 Feb 2008, 9:55 PM
Hi!

I have a tool bar button.

when i place the mouse pointer on this button it is not showing the tooltip text
I included ext-all.css
This is my Toolbar button


deletefriendinsystem=new Ext.Toolbar.Button({
icon:"delete.png",
cls:"x-btn-icon",
tooltip:'Delete Friend',
handler: function()
{
alert("u clicked me");
}
});



Please Help Me
Thank You
sreenija

fay
8 Feb 2008, 1:37 AM
Have you called Ext.QuickTips.init() (http://extjs.com/deploy/ext/docs/output/Ext.QuickTips.html#init)?

sreenija
8 Feb 2008, 5:10 AM
that is so nice of you Fay
thanks a lot!

and here i have another query
I hope you will help me

i have a grid with a drop down in it's toolbar also remote sorting is done by it's data store
when i select an item in my drop down i change my grid's data store proxy this way


addresstoshowview="/FastestFunds-Lst/showview.do";
p1= new Ext.data.HttpProxy({url:addresstoshowview});
ds.proxy =p1;
ds.reload({params:{login_user:user},add:true});


so that this operation appends the new records to existing one's.

After this operation again I set my data store proxy to another url:


addresstofindfund='/FastestFunds-Lst/findfundforuser.do?viewname='+vname+'&username='+user;
p2= new Ext.data.HttpProxy({url:addresstofindfund});
ds.proxy =p2;

Let You know that my data store does remote sorting

so when i select an item from the drop down well it adds new records to the existing one's
but when i immediately click on a column header, since remote sorting is enabled it goes to
url -> addresstofindfund
gets the sorted records but appends them instead of replacing
i know why because it is using add:true in previous load settings
i don't want this to happen
how can i set add:false again?
clicking of column header is not in my control to make add:false for that load

please help me
Thanks Again
sreenija