[CLOSED] Closable Autohide Notification

  1. #1

    [CLOSED] Closable Autohide Notification

    Hello,

    I am trying to add a close button in my autohide notification. Is it possible?

    Thanks

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                Notification.Show(new NotificationConfig
                {
                    Title = "Title",
                    Icon = Icon.Information,
                    HideDelay = 2000,
                    Html = "testing 123",
                    Closable = true
                });
            }
        }
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1">
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ScriptManager1" runat="server" />
    
        </form>
    </body>
    </html>
    Last edited by Daniil; Jul 22, 2011 at 11:31 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use
    Notification.Show(new NotificationConfig
    {
        Title = "Title",
        Icon = Icon.Information,
        HideDelay = 5000,
        Html = "testing 123",
        Listeners =
        {
            Render =
            {
                Handler = "this.removeClass('x-notification-auto-hide');"
            }
        }
    });
  3. #3
    Thanks. Solved.

Similar Threads

  1. Replies: 2
    Last Post: Apr 23, 2010, 9:02 AM
  2. Replies: 1
    Last Post: Apr 01, 2010, 4:27 PM
  3. [CLOSED] [1.0] Notification - AutoHide and CloseVisible
    By danielg in forum 1.x Premium Help
    Replies: 3
    Last Post: Jan 21, 2010, 7:35 AM
  4. Replies: 1
    Last Post: Sep 16, 2009, 3:10 PM
  5. [CLOSED] TabPanel and Closable
    By Timothy in forum 1.x Premium Help
    Replies: 2
    Last Post: Oct 07, 2008, 5:11 PM

Posting Permissions