• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Grid Summary

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grid Summary

    Hi all,
    I want to sum colums in a grid (editor). i try to found the code with google but only plugins are available (Ext.ux.grid.GridSummary). Is it the only way to do that or do we have that in Extjs 3/4 provided with Valence.
    Thanks for your help.

  • #2
    Ext 4 has this ability built in. Specify "groupingsummary" as one of the features for your grid. Then specify the type of summary you want on each column.

    Code:
    var grid = Ext.create('Ext.grid.Panel', {
            store: myStore,
            features: [{
                ftype: 'groupingsummary'
            }],
            columns: [{
                text: 'Sales',
                dataIndex: 'SALES',
                summaryType: 'sum'
             }, {
               // more columns...

    Comment


    • #3
      Hi Sean,
      Thanks a lot for this reply, i m going to test it.
      See you,
      Patrice

      Comment

      Working...
      X