Hi,
I am trying to implement summary data at the bottom of grid (or Column total).
Paramquery is on the modal and I have the below code for paramquery to be shown on the modal.
$("#modal_" + $this.variables.vModal).on("shown.bs.modal", function () {
$this.variables.vGrid.refresh();
});
Paramquery is working okay but doesn't show the total numbers.
(it caculates the total nubmers correctly in log but not showing the total numbers on the summary line.)
I can see the summary line but nothing shown up there.
Please help!
let obj = {
showTop: false,
height: 350,
resizable: true,
filterModel: { on: true, mode: "AND", header: false },
swipeModel: { on: 'touch' },
stripeRows: false,
editable: false,
dataModel: { data: responseData },
colModel: $this.variables.colM,
numberCell: { show: false },
wrap: true,
hwrap: true,
sortModel: { ignoreCase: true },
scrollModel: { autoFit: false },
menuIcon: true,
postRenderInterval: -1,
create: function () {
const $grid = this;
$.getJSON("/core/get/getParamQueryState?query=" + $this.variables.vPqGrid, function (response) {
$grid.loadState({ state: JSON.parse(response), refresh: true });
});
}
}
$this.variables.vGrid = pq.grid("#collectionSummaryGrid", obj);
$this.variables.vGrid.option('summaryData', $this.calculateSummary());