ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mercury85 on May 15, 2018, 10:56:44 am
-
Hi,
Working more on the calls from IndexDB and now, I have created my colModel dynamically and everything looks good, I am having some issues with the groupmodel not initializing unless I push toggl on/off, At the end I add the group model and refreshviewanddata hoping it refreshes but no luck.
var groupModel = {
on: true,
indent: 20,
dataIndx: dataIndx,
summaryInTitleRow: "all",
grandSummary: true,
showSummary: [],
summaryEdit: false,
titleInFirstCol: true,
bold: true,
collapsed: [false, false, false, true],
title: ['{0}', '{0}', '{0}', '{0}']
};
var grid = pq.grid("#grid_group_rows", obj);
grid.colModel = buildColM;
grid.Group().option(groupModel);
console.log(groupModel);
grid.refreshDataAndView();
-
Please share a jsfiddle of the issue.
In your code, following line is incorrect, it's not part of the grid API.
grid.colModel = buildColM;
Please use the grid API https://paramquery.com/pro/api#method-refreshCM
-
Perfect thank you!!!