Results 1 to 6 of 6

Thread: waitMsg formpanel

  1. #1

    Join Date
    Aug 2007
    Location
    Romania
    Posts
    41

    Default waitMsg formpanel

    I have a problem while loading json data into formfields, in a window. The waitMsg dialog, displays under the window. If I move the window i see the waitMsg.
    Is there anyway to bring it on top of the window that contains the formPanel?

  2. #2

    Default same issue

    I have same issue, i tried to deal with hide/show, disable/enable, bringToFront/sendToBack with my own customized window to use as waitMsg window, yet i did not get to work.

    I would like to see the wait window before the actual window is shown, it did not happen.

    Each time the latter window appears, the previous one get covered behind, this could be tested easily to make the wait window not dispear, it is always at the back .

  3. #3
    Ext User halkon_polako's Avatar
    Join Date
    Nov 2007
    Location
    Barcelona
    Posts
    193

    Default

    Can you provide some code?

  4. #4

    Join Date
    Aug 2007
    Location
    Romania
    Posts
    41

    Default here is some code

    PHP Code:
    var formPanel = new Ext.form.FormPanel({
            
            
    baseCls'x-plain',
            
    labelWidth75,
            
    url:'users/edit',
            
            
    reader: new Ext.data.JsonReader({
                
    root'results'
            
    }, ['id','username','lastname','firstname','password','email']
            ),

            
    items: [
                
    id,
                
    lastname
                
    firstname,
                
    username,
                
    password,
                
    email
            
    ]
        });

        
    // load form and assign value to fields
        
    formPanel.form.load({url:'users/getOne/'+selectedId
                             
    waitMsg:'Loading' });
        
        
    // define window and show it in desktop
        
    var window = new Ext.Window({
            
    title'Edit Existing Demo User',
            
    width500,
            
    height:400,
            
    minWidth300,
            
    minHeight250,
            
    layout'fit',
            
    plain:true,
            
    modal:true,
            
    bodyStyle:'padding:5px;',
            
    buttonAlign:'center',
            
    itemsformPanel,

            
    buttons: [{
                
    text'Save'
                
    handler: function() {
                    
    // check form value 
                    
    },{
                
    text'Cancel',
                
    handler: function(){window.hide();}
            }]
        });

        
    window.show(); 
    when i want to load formfield values from backend with
    PHP Code:
    formPanel.form.load({url:'users/getOne/'+selectedId
                             
    waitMsg:'Loading' }); 
    instead of displaying the waitMsg on top of the window, it is displayed under the window, while the user can edit the fields, but we don't want that, we want the waitMsg to be displayed in front of the window containing the formpanel, the waitMsg should mask the window. I hope this can give you a clue of what i'm trying to do.

  5. #5

    Join Date
    Aug 2007
    Location
    Romania
    Posts
    41

    Default So simple :))

    Hey guys, it is so simple, why didn't i think of this! If I load the form after the window appears the behavior is the one i want so, we got to load the formfield values after the window.show event.
    PHP Code:
    window.show();
        
        
    // load form and assign value to fields
        
    formPanel.form.load({url:'users/getOne/'+selectedId
                             
    waitMsg:'Loading' }); 
    Simple isn't it!
    A good night sleep can do miracles.

  6. #6

    Default loading window before the actual mainwindow

    Hi:

    I this case i take back my word.

    My case is different. I need to show a rendring/loading/waiting box before the main window(Ext.window) show(it takes noticeable time for the window to render and appear the first time). I have tried the way to show the main window first and then yes, the loading window will show, but this defeat the my wait/load/render/Msg box purpose.

    I have tried to link the show function of waitMSg box with the afterRender/beforeShow event of the main window(Ext.Window), the waitMsg box shows behind the main window, not serving the purpose, plus i mentioned i tried hide/show. disable/enable, bringtofront/sendto back between the waitMsg and the manin window, so far still miserable....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •