[CLOSED] How do you use a LoadMask?

  1. #1

    [CLOSED] How do you use a LoadMask?

    Can someone provide an example of how to use a LoadMask on a FieldSet or a Panel with a button executing?

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] How do you use a LoadMask?

    Hi Timothy,

    The Coolite LoadMask property is used by internal logic only (you can set message and etc but you can't manage load mask (show/hide)). I can suggest next example

            <script type="text/javascript">
                function DoWork(panel){
                    var loadMask=new Ext.LoadMask(panel.body, {msg:'Working 5 sec...'});
                    loadMask.show();   
                    
                    //emulate 5 sec work
                    var task = new Ext.util.DelayedTask(function(){loadMask.hide();});      
                    task.delay(5000);            
                }
            </script>
            <ext:Panel runat="server" ID="Panel1" Title="LoadMask processing example" Width="300" Height="150">
                <Content>
                    Content
                </Content>
                <Buttons>
                    <ext:Button runat="server" ID="SomeWork" Text="Do work" AutoPostBack="false">
                        <Listeners>
                            <Click Handler="DoWork({Panel1});" />
                        </Listeners>
                    </ext:Button>
                </Buttons>
            </ext:Panel>
    In this example I manually create load mask, show it and hide.

    Please let me know if you need additional information.
    Last edited by geoffrey.mcgill; Jul 06, 2010 at 10:44 PM.

Similar Threads

  1. [CLOSED] LoadMask on an ext:FormPanel
    By ewgoforth in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 08, 2011, 1:55 PM
  2. [CLOSED] [0.8.1] LoadMask
    By cobiscorp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 27, 2010, 3:23 PM
  3. LoadMask
    By Krisller in forum 1.x Help
    Replies: 0
    Last Post: Jun 10, 2010, 7:35 PM
  4. [CLOSED] LoadMask
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 23, 2008, 7:56 AM
  5. help with LoadMask
    By idrissb in forum 1.x Help
    Replies: 0
    Last Post: Sep 16, 2008, 3:48 AM

Posting Permissions