Need a special offer?Find out if your project fits.
+

IsTotal set to false when collapsed

Resolved
Accobat Development asked on August 3, 2021

Why is the isTotal property being set to false when you collapse a row?
Isn't still a total of the underling rows?
 
/JIP
 
 

7 answers

Public
Vera Didenko Vera Didenko Flexmonster August 3, 2021

Hello, Jimmy,
 
Thank you for reaching out.
 
We haven't managed to reproduce the same behavior on our end.
Here is a JSFiddle for reference: https://jsfiddle.net/flexmonster/zt2bdcyk/. In the example, isTotal is returned as true for both collapsed and expanded grid total cells (for example, "Canada" - "20479" and "USA" - "13298").
 
Could you please provide a code sample or modify the provided JSFiddle, so the issue is reproducible?
More insight will help us to understand the situation better.
 
Thank you, and looking forward to your response.
 
Kind regards,
Vera

Public
Accobat Development August 3, 2021

Hello Vera,
 
It's when you are using a hierarchy: https://jsfiddle.net/ofvm2sn9/
 
If you right click the 20479 in Canada and select getCell isTotal is false then expand color and right click the 20479 in Canada and select getCell isTotal is true.
 
/Jimmy

Public
Vera Didenko Vera Didenko Flexmonster August 3, 2021

Hello, Jimmy, 
 
Thank you for providing further details.
 
You are right; isTotal changes to false when the multilevel hierarchy is drilled up to the top level.
Our team will look into this in more detail, and we will share the results with the ETA August 26th.
 
Feel free to reach out to us if any questions arise in the meantime.
 
Kind regards,
Vera

Public
Accobat Development August 24, 2021

Hello,
 
I have just updated to the newest version and it works when "showHierarchies" is enabled but if you set it to false "isTotal" is still false when drilling up to the top level: https://jsfiddle.net/sbxv3q5h/
 
/Jimmy

Public
Vera Didenko Vera Didenko Flexmonster August 24, 2021

Hello, Jimmy,
 
Thank you for reporting this detail.
 
Our team will provide an update to cover the "showHierarchies: false" scenario as well.
This will be available in an upcoming minor release of Flexmonster with the ETA 21st of September.
 
Please contact us if any questions arise.
 
Kind regards,
Vera

Public
Vera Didenko Vera Didenko Flexmonster September 21, 2021

Hello, Jimmy,
 
We are happy to inform you that the issue with the wrong isTotal value of the drilled-up cells was fixed (if options.grid.showHierarchies is set to false).
 
This is available in the latest (v2.9.8) version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component. Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
 
Please let us know if the fix works fine for you.
 
Kind regards,
Vera

Public
Accobat Development September 21, 2021

Hello Vera,
 
I have tested and it works thanks.
 
/Jimmy

Please login or Register to Submit Answer