Giter Site home page Giter Site logo

Comments (11)

tonytomov avatar tonytomov commented on July 23, 2024

I try to fix the problem. Please let me know if the fix work for you.

from jqgrid.

fredsal avatar fredsal commented on July 23, 2024

With that the demo is not showing anything
Master: https://jsfiddle.net/1wqLn8fc/ (d8be545)
V5.8.2: https://jsfiddle.net/9knq2u1g/

from jqgrid.

fredsal avatar fredsal commented on July 23, 2024

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.

tonytomov avatar tonytomov commented on July 23, 2024

In jqGrid setup of your demo change datatype from 'local' to 'json'. It work for me when I do this change.

from jqgrid.

fredsal avatar fredsal commented on July 23, 2024

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>&nbsp;&nbsp;{2}</span>',
        gv,n,$.fn.fmatter.call(grid[0],'currency',s[1].v),s
     )
],

from jqgrid.

tonytomov avatar tonytomov commented on July 23, 2024

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.

fredsal avatar fredsal commented on July 23, 2024

Ok, my mistake, seems to be working fine, thank you very much

from jqgrid.

fredsal avatar fredsal commented on July 23, 2024

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/
image

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.

parallels999 avatar parallels999 commented on July 23, 2024

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.

tonytomov avatar tonytomov commented on July 23, 2024

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.

parallels999 avatar parallels999 commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.