[CLOSED] Tooltip forGridPanel image column

  1. #1

    [CLOSED] Tooltip forGridPanel image column

    Hi,

    I've got an image column in my GridPanel whose image source is set on the client:
    <ColumnModel runat="server" ID="ColumnModel1">
          <Columns>
                            <ext:Column ColumnID="IconColumn" MenuDisabled="true" Sortable="false" Resizable="false"
                                Hideable="false" Width="26">
                                <Renderer Fn="iconRenderer" />
                            </ext:Column>
          </Columns>
    </ColumnModel>
    
    var iconRenderer = function (value, metadata, record) {
            return String.format("<img src='{0}' alt='{1}' />", Ext.net.ResourceMgr.getIconUrl("EmailOpen"), record.get('MyDate'));
    };
    The native Tooltip using "alt" attribute doesn't display even though it does get attached properly from what I can see in the script debugger. Please suggest a workaround or a better approach.
    Last edited by Daniil; Sep 14, 2012 at 7:17 AM. Reason: [CLOSED]
  2. #2
    I just replaced the "alt" with "title" as suggested in http://forums.ext.net/showthread.php...image-renderer and it works fine for me. If that approach is valid and cross-browser compatible, please mark this thread as closed.
  3. #3
    According w3schools it is supported in all major browsers.
    http://www.w3schools.com/tags/att_standard_title.asp

    QTips can give you more powerful tooltips.
    http://forums.ext.net/showthread.php...ll=1#post41422

    By the way, the alt attribute is considered as required by w3schools.
    http://www.w3schools.com/tags/att_img_alt.asp
  4. #4
    Quote Originally Posted by Daniil View Post
    According w3schools it is supported in all major browsers.
    http://www.w3schools.com/tags/att_standard_title.asp

    QTips can give you more powerful tooltips.
    http://forums.ext.net/showthread.php...ll=1#post41422

    By the way, the alt attribute is considered as required by w3schools.
    http://www.w3schools.com/tags/att_img_alt.asp
    Thanks for the links Daniil! Using ext:qtip seems to be the right fit to meet my requirements.

Similar Threads

  1. [CLOSED] GridPanel column hyperlink tooltip
    By vadym.f in forum 1.x Premium Help
    Replies: 8
    Last Post: Nov 07, 2012, 10:42 PM
  2. TreeGrid column header tooltip
    By Spamme in forum Feature Requests
    Replies: 1
    Last Post: Feb 20, 2012, 10:02 AM
  3. [CLOSED] tooltip on grid column
    By SymSure in forum 1.x Premium Help
    Replies: 1
    Last Post: Jun 01, 2011, 11:43 AM
  4. [CLOSED] GridPanel Column Tooltip
    By sadaf in forum 1.x Premium Help
    Replies: 10
    Last Post: Feb 02, 2011, 10:34 AM
  5. [CLOSED] How to add tooltip to a javascript image renderer
    By garrisrd in forum 1.x Premium Help
    Replies: 4
    Last Post: Oct 05, 2010, 1:43 PM

Tags for this Thread

Posting Permissions