I had a gridview, it attached with a model that have some fields. But in my grid i just show one field, and what i want is when my mouse hover to the grid row, tooltip will appear and show the other fields value.
How can i do this? Anybody ever done this?
What grid event that I should create the tooltip? How can I access my on hover row value and show it on the tooltip? How the nice ways to show the value, can tooltip using item like xpanel or something, or the only way is using html?
Please help me. Thanks in advance :)
Use renderer in grid columns config. write an function which will return the expected value to that renderer function mapping.
Sample working example:
This is the place (metaData.tdAttr = 'data-qtip="' + deviceDetail + '"';) where you need to show data in tooltip
I used in renderer:
you can use below example from sencha documents
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.tip.ToolTip
Use your columns renderer function as follows:
The simplest way:
When you declare the column use the property
attribute
: