[CLOSED] Alert box

  1. #1

    [CLOSED] Alert box

    Hi,

    How can I increase the size of alert box so that it displays long messages?
    Pls let me know asap.

    Thanks !
    Veda
    Last edited by Daniil; Aug 08, 2013 at 7:05 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Alert box is creates MessageBox but with some predefined parameters. So if you want to change width you can just create required MessageBox. Also I hope the following page will be useful: http://docs.sencha.com/extjs/4.2.1/#...dow.MessageBox

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
        
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
           X.Msg.Show(new MessageBoxConfig
            {
                Title = "Address",
                Message = "Some long address could be placed here",
                Width = 300,
                Buttons = MessageBox.Button.OK
            });
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>   
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        
        <ext:Button ID="Button1" runat="server" Text="Show from server-side">
            <DirectEvents>
                <Click OnEvent="Button1_Click" />
            </DirectEvents>
        </ext:Button>
        
        <ext:Button ID="Button2" runat="server" Text="Show from client-side">
            <Listeners>
                <Click Handler="
                    Ext.Msg.show({
                         title:'Address',
                         msg: 'Some long address could be placed here',
                         width: 300,
                         buttons: Ext.Msg.OK
                    });
                    "></Click>
            </Listeners>
        </ext:Button>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Ext.Msg.alert box size
    By livehealthierGF in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 26, 2013, 4:18 AM
  2. alert vs Ext.Msg.alert + window.location
    By Nime in forum 1.x Help
    Replies: 0
    Last Post: Nov 10, 2009, 4:34 AM
  3. Ext.Msg.Alert scope
    By Kheu in forum 1.x Help
    Replies: 0
    Last Post: Jul 06, 2009, 5:36 AM
  4. [CLOSED] Hi , Ext.Msg.alert?
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 11, 2009, 3:47 PM
  5. Message alert in the .cs
    By flaviodamaia in forum 1.x Help
    Replies: 4
    Last Post: Jan 21, 2009, 3:53 PM

Posting Permissions