Results 1 to 2 of 2

Thread: How add a custom function to SummaryType

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    53
    Vote Rating
    1
      0  

    Default How add a custom function to SummaryType

    Hello everybody, unfortunately the SummaryType doesn't allows to easily add a customized function because displays only:

    1.jpg

    But I noticed that to add a custom function to SummaryType you need to duplicate the column
    1.5.jpg

    Then in the duplicated column try to add "SummaryType" a press Add
    2.jpg

    In this manner you will able to add a custom function to your column!
    3.jpg

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Location
    Dublin
    Posts
    72
    Vote Rating
    11
      0  

    Default

    You can use summaryRenderer.

    1. Add a summary feature.
    2. Add a summaryType (sum)
    3. Add a summaryRenderer, that will create your function.
    4. Add code to the summaryRenderer
      Code:
      (like return val;)



    You probably can override or put your own summaryType, but as you show in the pictures you cannot have anything else apart from the options Sencha Architect gives.




    Quote Originally Posted by rh_it View Post
    Hello everybody, unfortunately the SummaryType doesn't allows to easily add a customized function because displays only:





    But I noticed that to add a custom function to SummaryType you need to duplicate the column
    1.5.jpg

    Then in the duplicated column try to add "SummaryType" a press Add
    2.jpg

    In this manner you will able to add a custom function to your column!
    3.jpg

Tags for this Thread

Posting Permissions

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