ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: tcf on February 08, 2016, 11:03:20 pm
-
I've tried doing the following :
$( "#grid" ).pqGrid( "hideLoading" );
but every time I refresh the grid using this command below the Loading message appears:
$( "#grid" ).pqGrid( "refreshDataAndView" );
Any Suggestions?
Thanks
-
It's because refreshDataAndView() initiates a new remote request and calls showLoading() which shows the message again.
dataModel.beforeSend callback can be used to hide it whenever it's shown by refreshDataAndView()
beforeSend: function(){
this.hideLoading();
},
http://paramquery.com/pro/api#option-dataModel-beforeSend