[FIXED] [#497] [2.5.3] X.Msg.Info

  1. #1

    [FIXED] [#497] [2.5.3] X.Msg.Info

    this codebehind cs code

    Is it possible to center screen ?

     X.Msg.Info(new InfoPanel { Title = "test", Html = "saved data....", UI = UI.Success}).Show();
    Last edited by Daniil; May 30, 2014 at 4:17 AM. Reason: [FIXED]
  2. #2
    Hi @hakandonmez,

    This InfoPanel's setting should do the job.
    Alignment = AnchorPoint.Center
  3. #3
    good people, thank you very much.
    I congratulate you. You're a very successful and fast

    perfect ext.net

    this perfect code
     private Ext.Net.Button ExtNetBtnAccept = new Ext.Net.Button {Text = "Ok", Handler = "this.up('infopanel').destroy();", Icon = Ext.Net.Icon.Accept };
    
     X.Msg.Info(new InfoPanel { Icon = Ext.Net.Icon.Accept, Title = "Warning", Html = "Data Save Complate.....", UI = UI.Success, Buttons = { ExtNetBtnAccept }, Alignment = AnchorPoint.Center }).Show();
    Quote Originally Posted by Daniil View Post
    Hi @hakandonmez,

    This InfoPanel's setting should do the job.
    Alignment = AnchorPoint.Center
    Last edited by hakandonmez; Apr 02, 2014 at 5:30 PM.
  4. #4
    Thank you for the kind words!
  5. #5
    Quote Originally Posted by Daniil View Post
    Thank you for the kind words!
    this java code
    using modal running
      Ext.Msg.info
           ({
               queue: 'center', iconCls: '#Eye', title: 'title', autoHide:false, modal:true
               , html: 'test'
               , buttons: [{
                   text: 'Close',
                   handler: function () { this.up('infopanel').destroy(); }
               }]
           });
    this csharp code
    how to use modal support ?
            public void XMsgInfo(string title, string html, Ext.Net.Icon icon, Ext.Net.UI ui,bool autohide)
            {
                Ext.Net.Button ExtNetBtnAccept = new Ext.Net.Button 
                {
                    Text = "Close", 
                    Handler = "this.up('infopanel').destroy();", 
                    Icon = Ext.Net.Icon.Accept 
                };
                
                X.Msg.Info(
                            new InfoPanel 
                                { 
                                    Icon = icon, 
                                    Title = title,
                                    Html = html,
                                    AutoHide = autohide,
                                    UI = ui, 
                                    Buttons = { ExtNetBtnAccept }, 
                                    Alignment = AnchorPoint.Center 
                                }
                        ).Show();
            }
  6. #6
    Thank you for the report. InfoPanel misses a Modal setting. It is a bug. Created an Issue:
    https://github.com/extnet/Ext.NET/issues/497

    Fixed in the trunk, revision #5857.

    It will go to v2.5.3.

    As a workaround, please use:
    CustomConfig =
    {
        new ConfigItem("modal", "true")
    }

Similar Threads

  1. [CLOSED] TreePanel Info Filter
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2014, 12:38 PM
  2. [CLOSED] Ext.Net Version and build info
    By ATLAS in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 19, 2013, 6:04 PM
  3. [CLOSED] How to format one grid cell info based on other cell info?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 01, 2013, 2:12 PM
  4. [CLOSED] Remove sort info
    By caha76 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 21, 2011, 8:30 AM
  5. Info about Portal's object
    By davromu in forum 1.x Help
    Replies: 0
    Last Post: Jun 04, 2009, 10:56 AM

Posting Permissions