QGrid display default "loading" message when updating a table / on custom update

Posted by JVXR on Stack Overflow See other posts from Stack Overflow or by JVXR
Published on 2010-04-10T19:28:22Z Indexed on 2010/04/10 19:33 UTC
Read the original article Hit count: 294

Filed under:
|
|
|

I have a case where I need to update a jqgrid based on some search criteria which the user selects. I can get the data to update , but I would want the loading message to show while the new data is being fetched. Can someone please let me know how to get that working ?

Current code follows


var ob_gridContents = $.ajax( {
 url : '/DisplayObAnalysisResults.action?getCustomAnalysisResults',
 data :  "portfolioCategory="+ $('#portfolioCategory').val() 
 +"&subPortfolioCategory="+ $('#subPortfolioCategory').val()
 + "&subportfolio=" + $('#subportfolio').val(),
 async : false
 }).responseText;
 var ob_Grid = jQuery('#OBGrid')[0];
 var ob_GridJsonContents = eval('(' + ob_gridContents + ')');
 $('#ob_Grid').trigger("reloadGrid"); 
 ob_Grid.addJSONData(ob_GridJsonContents);
 ob_Grid = null;
 ob_GridJsonContents = null;
}

© Stack Overflow or respective owner

Related posts about jqgrid

Related posts about display