[CLOSED] Increase timeout in RowExpander - Listeners - BeforeExpand

  1. #1

    [CLOSED] Increase timeout in RowExpander - Listeners - BeforeExpand

    Hi Team, I want to increase the timeout with my event BeforeExpand, It some part of my code is this:

    My Resourcemanager

    <ext:ResourceManager ID="rmCxC" runat="server" DirectMethodNamespace="mLevels" HideInDesign="true"/>
    --------------------------------------------------------------------

    In the GridPanel

    <Listeners>
        <BeforeExpand Fn="CargarNivel2" />
    </Listeners>
    -----------------------------------------------------------------------

    And, in a file JavaScript

    var CargarNivel2 = function (expander, record, body, row, rowIndex) {
        // Validar si ya se a construido el segundo nivel
        if (body.rendered) {
            return;
        }
    
        mLevels.SegundoNivel({
            timeout: 1000000,
    
            eventMask: {
                showMask: true,
                target: "customtarget",
                customTarget: expander.getCmp().body
            },
    
            success: function () {
                body.rendered = true;
            }
        });
    };
    ----------------------------------------------------------

    And in my file *.cs

    [DirectMethod]
            public void SegundoNivel()
            {
                 //CODE
            }
    ----------------------------------------------------------------

    But, I get a error "communication failure", because my sentence sql is in 40 seconds, I want to increase the time out in listener- beforeexpand, thank you.
    Last edited by Baidaly; Feb 23, 2013 at 5:34 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Try the following:

    [DirectMethod(Timeout = 40000)]
    public void SegundoNivel()
    {
    	// CODE
    }
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!

    Try the following:

    [DirectMethod(Timeout = 40000)]
    public void SegundoNivel()
    {
    	// CODE
    }
    Thank you Baidaly, this is working, you can to close this thread.

Similar Threads

  1. Replies: 4
    Last Post: Nov 06, 2012, 6:02 PM
  2. How to Increase width of the confimration Box
    By praveencat123 in forum 1.x Help
    Replies: 0
    Last Post: Sep 04, 2012, 7:12 AM
  3. [CLOSED] How to increase timeout
    By wisdomchuck in forum 1.x Premium Help
    Replies: 3
    Last Post: Jun 29, 2012, 7:38 PM
  4. Replies: 7
    Last Post: Nov 04, 2010, 10:15 PM
  5. Increase timeout session
    By Kamal in forum 1.x Help
    Replies: 0
    Last Post: Jul 15, 2009, 2:29 PM

Tags for this Thread

Posting Permissions