[CLOSED] MessageBox bug

  1. #1

    [CLOSED] MessageBox bug

    Hello support

    i think you have a but in the MessageBox..

    When you try to show a messagebox with the handler set it throws an error

    MessageBoxConfig mgsConf = new MessageBoxConfig()
                {
                    Message = String.Format("<b>Status:</b></br><div>succeded:{0}<br>failed:{1}</div>{2}", success.Count, failures.Count, failureText),
                    Modal = true,
                    HeaderIcon = Ext.Net.Icon.EmailGo,
                    Buttons = MessageBox.Button.OK,
                    Title = "Message sendt"
                };
                mgsConf.Handler = @"function(){LIA.Window.Close(#{" + LiaWcf.ContainerID + "}); var bus = Ext.net.Bus; bus.publish('UpdateMessage');}"; //<---- this is the course for the error
                Ext.Net.X.MessageBox.Show(mgsConf);
    the error i get is this:

    {"success":false,"message":"Error during ClientConfig initialization. FnProxy - Object reference not set to an instance of an object.","errors":[],"values":[]}

    any idea on what goes wrong

    Regards

    Akpenob
    Last edited by Daniil; Sep 03, 2013 at 5:04 AM. Reason: [CLOSED]
  2. #2
    Hi @Akpenob,

    I cannot reproduce with Ext.NET from the SVN trunk and this test case.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Alert(object sender, DirectEventArgs e)
        {
            MessageBoxConfig mgsConf = new MessageBoxConfig()
            {
                Message = "message",
                HeaderIcon = Ext.Net.Icon.EmailGo,
                Buttons = MessageBox.Button.OK,
                Title = "Title"
            };
            mgsConf.Handler = @"function(){ alert('Closed'); }";
            Ext.Net.X.MessageBox.Show(mgsConf);
        }
    </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="Alert" OnDirectClick="Alert" />
        </form>
    </body>
    </html>

Similar Threads

  1. [1.3] [2.0] No X.MessageBox from CodeBehind
    By ckarcz in forum 2.x Help
    Replies: 4
    Last Post: Mar 09, 2012, 4:59 PM
  2. Get Text MessageBox
    By Maia in forum 1.x Help
    Replies: 2
    Last Post: Mar 11, 2010, 4:22 PM
  3. MessageBox - Cannot get working from Example
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Jun 17, 2009, 5:24 PM
  4. Ext.MessageBox
    By dbassett74 in forum 1.x Help
    Replies: 3
    Last Post: May 26, 2009, 6:13 PM
  5. ExtJS MessageBox
    By jchau in forum 1.x Help
    Replies: 0
    Last Post: Oct 09, 2008, 10:30 AM

Tags for this Thread

Posting Permissions