I use a persist-settings on reports and am now trying to add a Group Summary field.
Grouping works fine, but when I add the Summary Type:
$col["summaryType"] = "sum";
I get an error reported:
jqGrid.state.js:379 – Uncaught jqGrid – No such method: groupingCalculations.handler
It looks to be by design of the jqGrid.state.js where-by it's halting the script and throwing an error if it can't find the object it's trying to save the state-of. In my case – I would never need to save the state of the grouping list – but I can't find a way around this.
Any suggestions? I can remove the persist settings section and jqgrid.state.js but then the report is not as useful (with persist settings).
Thanks for any assistance.
Mike
Please use latest jqgrid.state.js by linking this:
<script src="//cdn.rawgit.com/gridphp/jqGridState/e06788e68cd9f97db9da4bb4ba1c4a82890aed9e/jqGrid.state.js" type="text/javascript"></script>
Thanks for the reply, but that didn't solve the issue, I'm afraid to say.
I had already tried updating the jqGrid.state.js file and linking directly (I normally download so I can test off-line on a test-server).
The report still gets stuck on "Loading. . . " and the error console shows Uncaught jqGrid – No such method: groupingCalculations.handler
Thanks
Mike
Just an update, we're still working on it's resolution and update on some progress.
This is still not working. Has anyone found a work-around to be able to use the Sub-totals AND still be able to store the settings?
Thanks
Mike
Is there any progress on this? I've developed a few-more reports with sub-totals and we need to be able to save the state as well.
Thanks again for a great product – it is working very well.
I've updated / fixed the state persistence code to work with grouping.
Kindly use this plugin file in your code and remove previously included jqGrid.state.js:
<script src="https://cdn.rawgit.com/gridphp/jqGridState/63904a57244ef89fa58ca0fa146da8e2e6e4d395/jqGrid.state.js" type="text/javascript"></script>