Comments (11)
I try to fix the problem. Please let me know if the fix work for you.
from jqgrid.
With that the demo is not showing anything
Master: https://jsfiddle.net/1wqLn8fc/ (d8be545)
V5.8.2: https://jsfiddle.net/9knq2u1g/
from jqgrid.
How about making it optional, so you avoid breaking changes?
Example:
summaryFormat: 'currency'
Or
summaryFormat: true
, when true it uses formatter from colModel
there are many custom formatters, and I don't think they can be applied to the group header row
from jqgrid.
In jqGrid setup of your demo change datatype from 'local' to 'json'. It work for me when I do this change.
from jqgrid.
I found another way,
apparently you can set a callback on groupText, not pretty, but works
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
)
],
from jqgrid.
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.
from jqgrid.
Ok, my mistake, seems to be working fine, thank you very much
from jqgrid.
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 reloadGrid
it works
grid.trigger('reloadGrid',{page:1});
the only way is reloadGrid
, Or is there a method for update only the selected group?
I'm trying to avoid groupingRemove
and groupingGroupBy
again
from jqgrid.
hi @tonytomov,
I use gridConc.getGridParam("groupingView").groups
for getting group totals(for custom calculations)
With this change, now i only get formated values(breaking change for me),
there is a possibility that we can get the value without formatting too, for example
v : 'FORMATED_VALUE',
vv: UNFORMATD_VALUE
from jqgrid.
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
from jqgrid.
Maybe it is a good idea to have option what to display - formatted or un-formatted value
that would be great
from jqgrid.
Related Issues (20)
- [Idea] `Full Size` functionality HOT 2
- Incorrect permutation after sorting columns with column chooser HOT 1
- Using JqGrid on Android based tablets with new Chrome browser HOT 3
- Header offsetting from the current position HOT 5
- Proposal for new feature - In-place Grid Update HOT 4
- Proposal for improving feature - Dynamic values for "select" formatter HOT 5
- The latest version does not work properly in IE11 HOT 1
- SUGGESTION: Combined export of multiple grids to a single Excel workbook. HOT 2
- config “ coloptions ” is invalid parameter HOT 4
- Method "saveRow" when url is "clientArray",errorfunc or successfunc never fire HOT 4
- Proposal - Get temporary rowData while editing HOT 3
- Problem with custom unformat for simple text columns HOT 2
- Checkbox columns in Cell-Edit mode HOT 3
- When a filter has a default values, all celles after it take this value in case of filter reset HOT 1
- is `String.prototype.substr` deprecated?
- jqGridImport & jqGridExport working synergy HOT 6
- delGridRow errorTextFormat option wont effect when del option returns 500 error HOT 1
- Row number beginning from 2. HOT 5
- `showSummaryOnHide` problem when collapse last subgroup HOT 2
- rownumber start from 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqgrid.