No such method: groupingCalculations.handler

QuestionsNo such method: groupingCalculations.handler
Mike Sheppard asked 8 years ago

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

6 Answers
Abu Ghufran answered 8 years ago

Please use latest jqgrid.state.js by linking this:
<script src="//cdn.rawgit.com/gridphp/jqGridState/e06788e68cd9f97db9da4bb4ba1c4a82890aed9e/jqGrid.state.js" type="text/javascript"></script>

Mike answered 8 years ago

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

Abu Ghufran answered 8 years ago

Just an update, we're still working on it's resolution and update on some progress.

Mike answered 8 years ago

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

Mike answered 7 years ago

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.

Abu Ghufran answered 7 years ago

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&quot; type="text/javascript"></script>

Your Answer

1 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?