[CLOSED] LinkButton with tooltip issue

  1. #1

    [CLOSED] LinkButton with tooltip issue

    Hello.

    There is a script error is occured, when I try to add a tooltip for LinkButton.

    <ext:LinkButton runat="server" Text="asdf" ToolTip="asdfasdf" />
    Could you suggest a solution for this issue?

    Best regards.
    Last edited by Daniil; Sep 07, 2012 at 10:30 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Thank you for the report!

    I am working on a fix.
  3. #3
    Hi,

    It has been fixed in SVN, revision #4337.

    Please update or use this fix.

    Thanks again for the report!

    Fix
    <script type="text/javascript">
        Ext.net.LinkButton.override({
            applyRenderSelectors : Ext.emptyFn,
    
            onRender : function (ct, position) {
                var el = this.el.dom;
    
                var img = document.createElement("img");
                img.src = Ext.BLANK_IMAGE_URL;
                img.className = "x-label-icon " + (this.iconCls || "");
    
                if (Ext.isEmpty(this.iconCls)) {
                    img.style.display = "none";
                }
    
                if (this.iconAlign == "left") {
                    el.appendChild(img);
                }
    
                el.appendChild(this.valueElement());
                this.btnEl = Ext.get(this.textEl);
    
                if (this.iconAlign == "right") {
                    el.appendChild(img);
                }
    
                Ext.net.LinkButton.superclass.onRender.apply(this, arguments);
    
                if (this.pressed && this.allowDepress !== false) {
                    this.setDisabled(true);
                    this.disabled = false;
                    this.el.dom.style.cursor = "pointer";
                }
            }
        });
    </script>
  4. #4
    Thank you.

Similar Threads

  1. [CLOSED] Tooltip align Issue
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 22, 2011, 5:14 PM
  2. [CLOSED] Tooltip width issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 09, 2011, 12:10 PM
  3. Issue with tooltip in gridpanel
    By plykkegaard in forum 1.x Help
    Replies: 2
    Last Post: Jul 15, 2011, 6:36 AM
  4. [CLOSED] Linkbutton - Tooltip issue
    By JonG in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 11, 2011, 7:35 AM
  5. [CLOSED] How to add a complex tooltip to ext:LinkButton
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 23, 2010, 3:04 PM

Posting Permissions