Ballresin

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: Reload Grid in-place #91000
    Ballresin
    Participant

    Fixed with following modification:

    Created global variable in another JS file: var resetScrollTop=1;

    Modified code:

    if(!ts.p.treeGrid&&!ts.p.scroll&&resetScrollTop==1){ts.grid.bDiv.scrollTop=0};resetScrollTop=1;

    in reply to: Programtically show the “Loading” box #90677
    Ballresin
    Participant

    Then just trigger the grid's built-in 'Loading…' div's visibility.

    The element ID with 3.6 for me is 'load_gridledgertable'… yours is probably 'load_'

    New code below.

    $(document).ready(function() {

    $('#load_gridledgertable').ajaxStart(function(){$(this).show();}).ajaxStop(function(){$(this).hide();});

    …other code…

    }

    in reply to: Programtically show the “Loading” box #90673
    Ballresin
    Participant

    I'm relatively new to jqGrid, so bear with me if this isn't the right way…

    I'm firing a line of code on document ready to trigger my loading indicator div's visibility. My element #loadingindicator is a div that has a gif and some text to provide the user with feedback. This is really great because it triggers every time I run an Ajax call, letting the user know to be patient.

    Hope it helps. Code below.

    $(document).ready(function() {

    $('#loadingindicator').ajaxStart(function(){$(this).show();}).ajaxStop(function(){$(this).hide();});

    …other code…

    }

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!