jQWidgets Forums

jQuery UI Widgets Forums Grid Fire function after resizing method

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Fire function after resizing method #16592

    morfeusz
    Participant

    I have big grid.
    The refresh method is doing about from 0.5 to 1.5 seconds.
    How can I fire function immediately after refreshing?

    setTimeout is not working for me because I don’t know how long will refreshing be doing.

    When I do this:

    $('#Grid').jqxGrid('refresh');
    myFunction();

    then sometimes its working, but when grid have many rows then myFunction is fireing too quickly.

    When I do this:

    $('#Grid').jqxGrid('refresh');
    setTimeout(function(){myFunction();}, 1500);

    Then myFunction fire too late when grid have less rows.

    Fire function after resizing method #16610

    Peter Stoev
    Keymaster

    Hi morfeusz,

    The refresh method is not doing async operations so calling a function after calling the “refresh” method is Ok.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.