Allow users to move grand totals

Answered
Craig Button asked on July 15, 2022

Hello,
Is it possible to allow users to move grand totals to the top or bottom. Or even allow us to set this by default. 
I know there are several tickets around this and I was wondering if this is now possible. 
Kind regards,
Craig Button
 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster July 18, 2022

Hello, Craig,

Thank you for contacting us.

Flexmonster provides the grid.grandTotalsPosition property of the Options Object to define the position of the grand totals. They can be displayed at the top of the table ("top") or at the bottom ("bottom"). Only available for the flat view
In case you use the compact or classic form, we suggest  using one of the following workarounds:

  1. Using the scrollToColumn and scrollToRow API calls provided by Flexmonster to scroll to the Grand Totals. Please check the following JSFiddle for reference: https://jsfiddle.net/flexmonster/rju23gza/9/ 
  2. Alternatively, you can implement your own Totals Row outside the component using the getData API call. It allows retrieving data from the grid and is usually used to integrate with third-party charting libraries. You can use it to retrieve desired grand totals. You can check the following sample illustrating getting grand totals: https://jsfiddle.net/flexmonster/dj0b97y1/

You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer