[CLOSED] Ext Notification

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Ext Notification

    Hello,
    we want to show an Ext notification from code behind with content= another web form, for that we use below:
     Ext.Net.Notification.Show(new Ext.Net.NotificationConfig
                {
                    Title = "Notification",
                    Icon = Ext.Net.Icon.Information,
                    Width = 550,
                    Height = 300,
                    AutoHide = false,
                    AutoLoad = new Ext.Net.LoadConfig
                    {
                        Url = "ToolbarOverflow.aspx",
                        Scripts = true
                    }
                });
    In All IE versions will throw unlimited js exception , In Chrome and Firefox ,the notification window will apprear, but with the content web form will be loaded on the parent page not into the notification window.
    how we can use Ext Notification with Autoload?

    Note
    that this behavior is with Ext 2.5.2 and Ext 2.4 with one difference, in Ext 2.4 will not load any content page, only a blank notification window wil appear.

    Thank you.
    Last edited by Daniil; Jul 22, 2014 at 8:06 PM. Reason: [CLOSED]
  2. #2
    Hi @snow_cap,

    You probably need to load the page as an iframe. Please try:
    AutoLoad = new Ext.Net.LoadConfig
    {
        Url = "ToolbarOverflow.aspx",
        CustomConfig =
        {
            new ConfigItem("renderer", "frame")  
        }
    }
    Though, I would highly recommend to avoid iframes if possible. It might be too overhead. What is the content and functionality of ToolbarOverflow.aspx? I believe it might be organized as a user control, at least.
  3. #3
    Thank you it worked.
    ToolbarOverflow.aspx it's just a test page, in fact we use another webform that bind data to Store.

    Thank you again.
  4. #4
    Hello again,
    Unfortunately it didn't worked with all IE versions, it throw js exception but finally will load successfully the page.
    below the updated code behind:
     Ext.Net.Notification.Show(new Ext.Net.NotificationConfig
                {
                    Title = "Notification",
                    Icon = Ext.Net.Icon.Information,
                    Width = 550,
                    Height = 300,
                    AutoHide = false,
                    AutoLoad = new Ext.Net.LoadConfig
                    {
                        Url = "ToolbarOverflow.aspx",
                        Scripts = true,
                        CustomConfig = { new ConfigItem("renderer", "frame") }
                    }
                });
    Second problem with all browsers, it's the noification window title layout, for that please find attached screen shot.

    Thank you again.
    Attached Thumbnails Click image for larger version. 

Name:	NotificationLayout.png 
Views:	130 
Size:	3.8 KB 
ID:	13371  
  5. #5
    I've reproduced both the issues. Yes, it might be problematic to load an iframe as a Notification. Or, maybe, even not supported.

    Do you not want to try to get rid of an iframe? We could assist.
  6. #6
    Hello,

    we need to use Ext Notification, so any new idea will be appreciated.
    the main idea that the notification content must be processed on another web form for performance benefit.
    we used to use it wit Ext 1.x without any issue.

    thank you again.
  7. #7
    Please try this.
    Ext.Net.Notification.Show(new Ext.Net.NotificationConfig
    {
        Title = "Notification",
        Icon = Ext.Net.Icon.Information,
        Width = 550,
        Height = 300,
        AutoHide = false,
        AutoLoad = new Ext.Net.LoadConfig
        {
            Url = "Test.aspx",
            CustomConfig = 
            { 
                new ConfigItem("renderer", "frame"),
                new ConfigItem("autoLoad", "false") 
            }
        },
        Listeners =
        {
            Show =
            {
                Handler = "this.load();"
            }
        }
    });
  8. #8
    it worked when loading the notification window, but when we click the close button it throw js exception : Ext is undefined, i think it's from the animation,can we just destroy the window to solve it?
  9. #9
    I cannot reproduce. Here is my test case.

    Example
    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Notify(object sender, DirectEventArgs e)
        {
            Ext.Net.Notification.Show(new Ext.Net.NotificationConfig
            {
                Title = "Notification",
                Icon = Ext.Net.Icon.Information,
                Width = 550,
                Height = 300,
                AutoHide = false,
                AutoLoad = new Ext.Net.LoadConfig
                {
                    Url = "Test.aspx",
                    CustomConfig = 
                    { 
                        new ConfigItem("renderer", "frame"),
                        new ConfigItem("autoLoad", "false") 
                    }
                },
                Listeners =
                {
                    Show =
                    {
                        Handler = "this.load();"
                    }
                }
            });
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Button runat="server" Text="Notify" OnDirectClick="Notify" />
        </form>
    </body>
    </html>
  10. #10
    Ext Notification is unstable, that's why sometimes on close will throw exceptions, sometimes will not, and on show 80% will be okay and 20% will throw exceptions; even i tried to put setTimeout for this.Load() with no success.
    Any clue to get rid of these js exceptions using IE? we can't lose such functionality we used to use perfectly with 1.x versions.
    Last edited by snow_cap; Jul 11, 2014 at 11:16 PM.
Page 1 of 2 12 LastLast

Similar Threads

  1. Problem with Notification Box
    By alawibh in forum 2.x Help
    Replies: 1
    Last Post: May 08, 2013, 10:08 AM
  2. [CLOSED] Ext.net.Notification
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 20, 2013, 12:27 PM
  3. Notification Issue.
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Jan 14, 2011, 11:08 AM
  4. Ext:notification
    By vali1993 in forum 1.x Help
    Replies: 0
    Last Post: Mar 16, 2010, 10:40 AM
  5. Ext. Notification
    By sharif in forum 1.x Help
    Replies: 2
    Last Post: Jun 19, 2009, 11:33 AM

Posting Permissions