[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 4: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. [CLOSED] Raising Accordion´s BeforeExpand event wrongly
    By RCN in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 06, 2012, 5: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, 6:12 AM
  3. [CLOSED] How to increase timeout
    By wisdomchuck in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 29, 2012, 6:38 PM
  4. Replies: 7
    Last Post: Nov 04, 2010, 9:15 PM
  5. Increase timeout session
    By Kamal in forum 1.x Help
    Replies: 0
    Last Post: Jul 15, 2009, 1:29 PM

Tags for this Thread

Posting Permissions