-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Summary not formatted on grouping header #1034
Comments
I try to fix the problem. Please let me know if the fix work for you. |
With that the demo is not showing anything |
How about making it optional, so you avoid breaking changes? there are many custom formatters, and I don't think they can be applied to the group header row |
In jqGrid setup of your demo change datatype from 'local' to 'json'. It work for me when I do this change. |
I found another way, Example: https://jsfiddle.net/v0pjmkts/ groupText:[(gv,n,s)=>
$.jgrid.template(
'{0}<span class="right"><b>TOTAL:</b> {2}</span>',
gv,n,$.fn.fmatter.call(grid[0],'currency',s[1].v),s
)
], |
By default summary fields are formated with the formatter when applied. The data on header and footer row can be formated and can be not depending on the parameter - formatHeaderData formatFooterData. The only exception was the grouping text, which is fixed with last commit. |
Ok, my mistake, seems to be working fine, thank you very much |
One question, after changing the values of any cell, is there a function to force the recalculation of the summary of that group? Example: https://jsfiddle.net/Lbuvyt3z/ With grid.trigger('reloadGrid',{page:1}); the only way is |
hi @tonytomov, I use v : 'FORMATED_VALUE',
vv: UNFORMATD_VALUE |
…ich property is uv See #1034 (comment)
I have added this requirement, but the property is named uv (un-formatted value) . Maybe it is a good idea to have option what to display - formatted or un-formatted value |
that would be great |
On footer row and footer group the field appears formatted, but on header group doesn't
Demo: https://jsfiddle.net/132xkcLa/
Best regards, Fred
The text was updated successfully, but these errors were encountered: