ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: resolvecomputing on March 03, 2018, 01:46:25 pm

Title: Error coming when re render the Pivot
Post 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!
Title: Re: Error coming when re render the Pivot
Post by: paramvir on March 05, 2018, 10:16:36 am
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
Title: Re: Error coming when re render the Pivot
Post by: resolvecomputing on March 05, 2018, 01:26:31 pm
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"
Title: Re: Error coming when re render the Pivot
Post by: paramvir on March 05, 2018, 04:27:01 pm
Please check the dataIndx and groupCols sub-options in groupModel. They should be present in colModel, otherwise error may occur.
Title: Re: Error coming when re render the Pivot
Post by: resolvecomputing on March 06, 2018, 12:46:13 pm
I have checked, but structure is correct, but I don't know why error coming.
Title: Re: Error coming when re render the Pivot
Post by: paramvir on March 06, 2018, 05:08:59 pm
Could you please share a jsfiddle so that I can check.