[CLOSED] LoadMask on Panel without Loader

  1. #1

    [CLOSED] LoadMask on Panel without Loader

    How do I add a load mask to a panel if I am not using a Loader? If I add a loader to a panel like this:

                                        <Loader runat="server">
                                            <LoadMask ShowMask="true" Msg="Please Wait..."></LoadMask>
                                        </Loader>
    ... the panel fails to load. Somewhere in the Ext code if fails in a urlAppend method. I have seen examples of people adding them on the BeforeShow method via javascript, but I can't seem to get these to work.

    We are no longer using Portals, but with Portals I could use the following javascript
    portal.el.mask('Please Wait...');
    but I am not sure what the code would be for a Panel.

    Thank you for your help
    Last edited by Daniil; Jan 22, 2013 at 5:06 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Quote Originally Posted by Patrick G View Post
    How do I add a load mask to a panel if I am not using a Loader? If I add a loader to a panel like this:

                                        <Loader runat="server">
                                            <LoadMask ShowMask="true" Msg="Please Wait..."></LoadMask>
                                        </Loader>
    ... the panel fails to load. Somewhere in the Ext code if fails in a urlAppend method. I have seen examples of people adding them on the BeforeShow method via javascript, but I can't seem to get these to work.
    Can you provide more information about this problem? I think we can help to solve it.

    Quote Originally Posted by Patrick G View Post
    We are no longer using Portals, but with Portals I could use the following javascript
    portal.el.mask('Please Wait...');
    but I am not sure what the code would be for a Panel.

    Thank you for your help
    To mask panel you can use the same method mask:

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="Fit">
                <Items>
                    <ext:Panel runat="server" Layout="Fit">
                        <Buttons>
                            <ext:Button runat="server" Text="Mask panel">
                                <Listeners>
                                    <Click Handler="#{Panel1}.body.mask('Please, wait...');"></Click>
                                </Listeners>
                            </ext:Button>
                            <ext:Button runat="server" Text="Unmask panel">
                                <Listeners>
                                    <Click Handler="#{Panel1}.body.unmask();"></Click>
                                </Listeners>
                            </ext:Button>
                        </Buttons>
                        <Items>
                            <ext:Panel runat="server" Title="Panel" Html="Lorem ipsum" ID="Panel1">
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                    
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>

Similar Threads

  1. Panel Loader example in Razor
    By basder in forum 2.x Help
    Replies: 4
    Last Post: Mar 24, 2014, 4:34 PM
  2. [CLOSED] reference of a control loaded by component loader
    By mirwais in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 28, 2012, 2:05 PM
  3. [CLOSED] Panel Loader: customize frame name
    By sbg in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 13, 2012, 12:40 PM
  4. Replies: 1
    Last Post: Oct 25, 2012, 5:51 PM
  5. panel with LoadMask on local file
    By jmilton in forum 1.x Help
    Replies: 7
    Last Post: Apr 03, 2009, 11:09 AM

Posting Permissions