MessageBox does't show till after method

  1. #1

    MessageBox does't show till after method

    hi all,
    I am trying to use the messagebox dialog to show a progress bar, it works just fine, its just that the message doesn't show till after my long process method completes, here is my code.

    
    
    
    protected void LoadData(object sender, AjaxEventArgs e)
    {
    Ext.Msg.Show(new MessageBox.Config
    {
        Message = "Updating database tables,please wait",
        ProgressText = "Updating...",
        Width = 300,
        Wait = true,
        WaitConfig = new ProgressBar.WaitConfig { Interval = 200 },
    });
    FillTables();
    lblLoadStatus.Text = CountAllRecords().ToString() + " Records Were Imported";
    }
    is there anything wrong there? it is not showing till after the filltables method is done, which takes about 10 secs. all im wanting is the have the messagebox show right when the button is clicked so that the user knows something is going on.

    Thanks for the help
  2. #2

    RE: MessageBox does't show till after method

    You need to implement return command when show the message.
  3. #3

    RE: MessageBox does't show till after method

    what do you mean return event? like just return a value?
  4. #4

    RE: MessageBox does't show till after method

    Hi,

    Please see how it is implemented in the following sample (Button5 - Progress Dialog)


    https://examples1.ext.net/#/MessageBox/Basic/Overview/


Similar Threads

  1. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  2. [CLOSED] mask till postback
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 08, 2011, 5:26 AM
  3. [CLOSED] detect user scrolling till end
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 16, 2011, 5:34 PM
  4. Replies: 0
    Last Post: Mar 03, 2011, 1:08 PM
  5. Call method in the MessageBox.Confirm
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Mar 10, 2010, 10:35 AM

Posting Permissions