Results 1 to 4 of 4

Thread: Can I get grids summary value?

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    30
    Vote Rating
    0
      0  

    Default Can I get grids summary value?

    Hello guys.
    I have a grid column with columnType: 'sum' that is returning the records total value.
    Is there any way to get this grid summary value?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    See if the following will help:
    http://jsfiddle.net/RMfzF/

    Scott.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    30
    Vote Rating
    0
      0  

    Default

    On this example, on first month you have a summary Total of 600, the second one a summary total of 300.

    How can I get one of those summaries and place on a textfield?

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    You can get the total column from the grid.store as data.

    As for the summary row, it seems the row is simply rendered. You could grab it from the summaryRenderer fuction (summaryData object) and access from grid.table.dom section.

    http://jsfiddle.net/RMfzF/1/

    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •