Show masking on load of a window

  1. #1

    Show masking on load of a window

    How can I show mask on a window when I am showing the window. I am using the code, but its not working
     <ext:Window ID="WintRate" runat="server" Title="Rating" BodyStyle="background:white;padding-left:40px;align:center;"
            ShowOnLoad="false" Width="400" Height="300">
            <Body>
               
                <ext:Label ID="lbldesc"  runat="server">
                </ext:Label>
            </Body>
            <LoadMask ShowMask="true" Msg="Please wait.." />
            
        </ext:Window>
    and I am showing the window through this code
     Coolite.AjaxMethods.BindRating(val);
     ctl00_ContentPlaceHolder1_WintRate.show();
    Any help will be appreciated.
  2. #2
    Hi,

    <LoadMask> make sense if there is <AutoLoad> defined in Window.

    So, it your case you have to show and hide mask manually.

    To show
    Ext.net.Mask.show({msg : 'Please wait..'}); //just before calling .show() of Window
    To hide
    <ext:Window ...>
        ...
        <Listeners>
            <Show Handler="Ext.net.Mask.hide();" Delay="2000" />
        </Listeners>    
    </ext:Window>
    Delay is in demonstration purpose.

    In Coolite 0.8.x please use
    Coolite.Ext.Mask
    instead of
    Ext.net.Mask
    Last edited by Daniil; Jun 11, 2012 at 9:49 AM.
  3. #3
    There is a small typing error in the code that shows the mask. It should be:

    Ext.net.Mask.show({msg : 'Please wait..'}); //just before calling .show() of Window
    (Ext.net instead of Ext.new)

    Quote Originally Posted by Daniil View Post
    Hi,

    <LoadMask> make sense if there is <AutoLoad> defined in Window.

    So, it your case you have to show and hide mask manually.

    To show
    Ext.new.Mask.show({msg : 'Please wait..'}); //just before calling .show() of Window
    To hide
    <ext:Window ...>
        ...
        <Listeners>
            <Show Handler="Ext.net.Mask.hide();" Delay="2000" />
        </Listeners>    
    </ext:Window>
    Delay is in demonstration purpose.

    In Coolite 0.8.x please use
    Coolite.Ext.Mask
    instead of
    Ext.net.Mask
  4. #4
    Thanks, @SandorD! I will correct my post.

Similar Threads

  1. Replies: 10
    Last Post: Apr 25, 2013, 5:38 AM
  2. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  3. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM
  4. Replies: 2
    Last Post: Oct 11, 2011, 1:15 PM
  5. Replies: 4
    Last Post: Sep 17, 2010, 10:33 PM

Tags for this Thread

Posting Permissions