[CLOSED] help with DirectMethod mask

  1. #1

    [CLOSED] help with DirectMethod mask

    Is it possible to define a control (target) for a directmethod with showmask=true? Like in event mask :

    em.Target = MaskTarget.CustomTarget;
    em.CustomTarget = customTarget.ClientID;
    How to?
    Last edited by Daniil; Aug 08, 2011 at 1:26 PM. Reason: [CLOSED]
  2. #2
    Hi Pablo,

    Please just use a DirectMethod config.

    Ext.net.DirectMethods.Test({
        eventMask : {
            showMask : true,
            target : 'customtarget',
            customTarget : #{Panel1}
        }
    });
    Here is the full example.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        [DirectMethod]
        public void Test()
        {
            System.Threading.Thread.Sleep(3000);
            X.Msg.Alert("DirectMethod", "Hello from Server!").Show();
        }   
    </script>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Panel ID="Panel1" runat="server" Height="200" />
            <ext:Button 
                runat="server" 
                Text="Call DirectMethod">
                <Listeners>
                    <Click Handler="Ext.net.DirectMethods.Test({
                                        eventMask : {
                                            showMask : true,
                                            target : 'customtarget',
                                            customTarget : #{Panel1}
                                        }
                                    });" />
                </Listeners>
            </ext:Button>
        </form>
    </body>
    </html>

Similar Threads

  1. Show a load mask with a DirectMethod call
    By ashwinrath in forum 1.x Help
    Replies: 2
    Last Post: Apr 21, 2012, 6:35 PM
  2. [CLOSED] Mask in code behind
    By VALUELAB in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 13, 2011, 5:35 PM
  3. [CLOSED] Difference between DirectMethod , DirectEvent, Static DirectMethod
    By syllabusarq in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 01, 2011, 11:37 AM
  4. [CLOSED] mask
    By majestic in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 11, 2010, 12:05 PM
  5. Ext.net.DirectMethod.request MASK
    By sipo in forum 1.x Help
    Replies: 5
    Last Post: May 07, 2010, 5:30 AM

Tags for this Thread

Posting Permissions