[1.3] [2.0] No X.MessageBox from CodeBehind

  1. #1

    [1.3] [2.0] No X.MessageBox from CodeBehind

    I cannot fire a message box from codebehind using 1.3. I checked examples in 1.3/2.0 example explorer and get the same issue.

    If you go to the example @ http://examples2.ext.net/#/Toolbar/Menu/Overview/

    Click "With Menu" > "Menu Item 3"

    You'll see a load mask, and the direct method is executed, but the message box is not displayed:

    DirectMethod from example above:
    <script runat="server">
        protected void Menu3_Click(object sender, DirectEventArgs e)
        {
            X.MessageBox.Alert("Click", e.ExtraParams["Param"]);
        }
    </script>
    All other actions performed with direct methods work fine for me.
    Last edited by geoffrey.mcgill; Mar 09, 2012 at 5:19 PM.
  2. #2
    Need to call Show method
    X.MessageBox.Alert("Click", e.ExtraParams["Param"]).Show();
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Works. I assumed it was like the js alert('text') and assumed the example was correct.

    Thanks!
  4. #4

    Help

    Quote Originally Posted by Vladimir View Post
    Need to call Show method
    X.MessageBox.Alert("Click", e.ExtraParams["Param"]).Show();
    A small question instead of getting all using e.ExtraParams["Values"] can we get the required value and assigned to alert box.
  5. #5
    Quote Originally Posted by Dorababu View Post
    A small question instead of getting all using e.ExtraParams["Values"] can we get the required value and assigned to alert box.
    Please start a new forum thread.

Similar Threads

  1. [CLOSED] Confirm messagebox from codebehind
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 30, 2010, 1:20 PM
  2. [CLOSED] Messagebox BringToFront (in codebehind)
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 26, 2010, 9:15 PM
  3. Get Text MessageBox
    By Maia in forum 1.x Help
    Replies: 2
    Last Post: Mar 11, 2010, 4:22 PM
  4. MessageBox - Cannot get working from Example
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Jun 17, 2009, 5:24 PM
  5. Ext.MessageBox
    By dbassett74 in forum 1.x Help
    Replies: 3
    Last Post: May 26, 2009, 6:13 PM

Posting Permissions