-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additonal grid key information #227
Comments
Thank you for your suggestion! I think it's the good idea. I would just like to discuss with you in which form it would be better to provide the information in I created the demo, which demonstrates it. I used requireJs in the demo. You can see the main JavaScript here the JavaScript code. The demo displays The summary in
I marked the second level summary with orange color. It's calculated by
You can see that the summary function have full access to the stack of the grouping keys and to all items from the current group. I included inline editing buttons additionally, which shows that the grouping summary values will be not automatically recalculated on editing the items. The summary values will be refreshed only after reloading of the page. If I correctly understand your question then the demo demonstrates what you asked for. Best regards P.S. Some times before you wrote that your company plant to contribute the development of free jqGrid by donating via PayPal. It's not required of cause, but it would be helpful for me. You can find more details in the README. |
@jimmccarthy Do you tried the above suggestions? Could you implement your requirement now? |
Hi Oleg, For my current issue I just needed the group field keys, but I could see Whatever is easier I guess. Sorry about the donation, I made the request to my manager a while back. I Thanks, Jim On Friday, April 29, 2016, Oleg Kiriljuk notifications@github.com wrote:
|
The value of the group field keys are inside of
I think I will extend the |
The property `keys` is added to `newGroup` parameter of the callback function `summaryType` of grouping. See [the issue](#227) for more details.
I committed the changes to GitHub. Now |
This is minor enhancement, but something I needed when trying to deal with handling group calculations. For some of the summary callback methods, there is a group object that contains the following attributes:
So when I access this group object I can see the display value, the value, the idx (level) etc. The problem is if I have multiple nested group levels, I can not access the parent information for a given group, onlly the group key values for the current group. By adding the following code in groupingPrepare to track keys:
...
I now have the full key values for a given group object.
Thanks,
Jim
The text was updated successfully, but these errors were encountered: