Wijmo FlexGrid: Custom display of group total value

Posted by: nguyenvietloc on 20 April 2020, 4:25 am EST

    • Post Options:
    • Link

    Posted 20 April 2020, 4:25 am EST

    Wijmo FlexGrid: Custom display of group total value```

    
    Hi,
    I'm using Wijmo FlexGrid and AngularJs.
    
    I want to custom display of group total value by my setting.
    For example, I want to round down value,... and display
    See image below.
    
    ① RoundDown(23561.3568507458, 4) = 23561.3568
    ② RoundDown(10737.378364999, 4)  = 10737.3783
    ③ RoundDown(12823.9784857467, 4) = 12823.9784
    
    https://jsfiddle.net/zx2tw36a/4/
    
    How to custom?
    I think can use FormatItem event to custom,
    but is there any other way?
    
    Thanh you.[img]https://gccontent.blob.core.windows.net/forum-uploads/file-2ae854bd-9909-48ea-8728-af5aca3e5d2c.jpg[/img]
  • Posted 21 April 2020, 12:53 am EST

    Hi,

    You can use the wj-flex-grid-cell-template to round off the number. Use the cell-type as Group inside the Expenses column and use the pipe operator of angularjs to round if off. Please refer to the updated sample link below:

    https://jsfiddle.net/t4c7kq8x/

    Regards,

    Ashwin

  • Posted 21 April 2020, 10:35 am EST

    Thank you for your answer.

    I will try to apply to my project.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels