ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: eroque on March 04, 2014, 12:29:56 am
-
I would like to hide the pager if no data is returned. I think the Grid should do this by default. Setting showBottom to false does the work.
-
here's what I did, may it help you or someone in the future:
var dataM = {
data: tmpJSON,
location: "local",
sorting: "local",
paging: (tmpJSON.length <= 10 ? null : "local"), //hide paging if 10 or less results
dataType: "JSON"
};
var grid1 = $("div#gridContainer").pqGrid({
dataModel: dataM ...