PDA

View Full Version : How to give tooltip in treeGrid Panel ?



Anup Rana
16 Jun 2011, 2:36 AM
I am using treegridpanel and i want and also having four columns that contains textfield.
Now i want to give tooltip to that textfield.
How can i achieve so ?
Can anyone help me out ?

aacoro
16 Jun 2011, 6:55 AM
I am using treegridpanel and i want and also having four columns that contains textfield.
Now i want to give tooltip to that textfield.
How can i achieve so ?
Can anyone help me out ?

Never heared about TreeGridPanel? but the GridPanel has overCls

An optional extra CSS class that will be added to this component's Element when the mouse moves over the Element, and removed when the mouse moves out. (defaults to ''). This can be useful for adding customized 'active' or 'hover' styles to the component or any of its children using standard CSS rules.

But also method mouseover : ( Ext.EventObject e )

The raw mouseover event for the entire grid.

Our do you want a tooltip on validation in TextField? Then you should use: Ext.QuickTips.init();

skirtle
17 Jun 2011, 8:54 AM
@aacoro, official demo here: http://dev.sencha.com/deploy/ext-3.4.0/examples/treegrid/treegrid.html

@Anup Rana, when you say textfield do you actually mean a TextField component, or do you just mean text? Either way there are several options. QuickTips (http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Ext.QuickTips) are possibly the easiest way. Adding an ext:qtip attribute to your markup will automatically add a tooltip. I believe that should work with a treegrid tpl.

aacoro
18 Jun 2011, 12:50 PM
@aacoro, official demo here: http://dev.sencha.com/deploy/ext-3.4.0/examples/treegrid/treegrid.html

@Anup Rana, when you say textfield do you actually mean a TextField component, or do you just mean text? Either way there are several options. QuickTips (http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Ext.QuickTips) are possibly the easiest way. Adding an ext:qtip attribute to your markup will automatically add a tooltip. I believe that should work with a treegrid tpl.

Nice! Did not knew about this one :-)