ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: resolvecomputing on March 03, 2018, 01:46:25 pm
-
I have tried Pivot, and have tried update structure and data, but when re render, the error message coming and can not re render "Uncaught use groupOption() to set groupModel options."
Can you help me solve this bug.
Thanks!
-
This error is thrown when attempt to made to set groupModel options directly through option() method.
You need to use Group().option() method to set groupModel options.
https://paramquery.com/pro/api#method-Group
-
I had define dataModel,colModel,groupModel
and tried update and re render
$( "#pivot" ).pqGrid( "Group" ).option(groupModel);
$( "#pivot" ).pqGrid( "option" , "dataModel", dataModel );
$( "#pivot" ).pqGrid( "option" , "colModel", colM );
$( "#pivot" ).pqGrid('refreshDataAndView');
And error coming: "pqgrid.min.js:17 Uncaught TypeError: Cannot set property 'summary' of undefined"
-
Please check the dataIndx and groupCols sub-options in groupModel. They should be present in colModel, otherwise error may occur.
-
I have checked, but structure is correct, but I don't know why error coming.
-
Could you please share a jsfiddle so that I can check.