ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: eroque on March 04, 2014, 12:29:56 am

Title: Hide Pager when no data is returned [Correction]
Post 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.
Title: Re: Hide Pager when no data is returned [Correction]
Post by: roundy72 on September 03, 2014, 08:06:50 pm
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  ...