☝️Small business or a startup? See if you qualify for our special offer.
+

Flat form is not behaving correctly

Answered
Nikita asked on July 2, 2025

We customized what we see in the Compact form using customizeCell() and its working without issues, however, when we switch to the Flat form it starts behaving incorrectly, for instance:

1. Incorrect counts, but when we expand rows, counts are updated to the correct values:

2. Incorrect presentation of the values: in customizeCell() we set how the values should be presented adding parentheses and individual values in it after the actual Flexmonster - generated value: 2.2 (>2, >1, 3.5, ...) and in Compact form it is showing fine, but not in the Flat form.

I am not sure how we could fix that since when we switch to Flat form it does not stop in customizeCell() somehow for all of the values in the table (some internal Flexmonster cache maybe?..).

7 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster July 4, 2025

Hello!

Thank you for reaching out to us.

Could you provide the JSFIddle with your cell customizations and the described behavior reproducible, so our team can test it on our side? You are welcome to modify the following JSFIddle: https://jsfiddle.net/flexmonster/9jg6m5tk/.

We also wanted to double-check if the miscalculations appear when switching from Compact to Classic or from Compact to Flat grid layout, as the Flat grid in Flexmonster represents the raw data, which doesn't contain expands and aggregated values(only the grand total row).

Looking forward to hearing from you.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster July 16, 2025

Hello, Nikita!

Hope you are doing well.

Just checking in to ask if you had a chance to prepare a reproducible sample illustrating the described behavior of a flat grid, so we can test it on our side.

Looking forward to hearing your response.

Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster July 24, 2025

Hello, Nikita!

Hope you are having a great week.

Our team is wondering if the described behavior of the flat grid is still reproducible. We will be glad to assist you once we receive more details on the case.

Looking forward to hearing from you.

Kind regards,
Solomiia

Public
Nikita July 24, 2025

Dear Solomiia,

Its always hard for me to make jsfiddle that would work due to complex data and quite a bit of data transformation, customization of flexmonster, but I will try making it. I am currently quite overloaded, so can't get into it at the moment. The issue is not yet resolved unfortunately.

Nikita

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster July 25, 2025

Hello, Nikita!

Thank you for getting back to us.

As a first step in our investigation, let's determine whether this issue is related to Flexmonster. For that, we suggest removing all custom code that may alter the component's default behavior (including any heavy customizations in the customizeCell function).

If the described behavior is still reproducible with the default Flexmonster configuration, our team will be happy to assist you further.

Kind regards,
Solomiia

Public
Nikita July 28, 2025

Both issues were just fixed. I was quite confused because I was wrongly expecting customizecell function in Flexmonster to be called for all of the values when switching between flat and compact form types, but it is happening only for the rows that are currently in the view. To see and debug what was going on I needed to scroll it and then the browser stops on appropriate breakpoints and I see flat form calling customizecell for the rows that were messed up like I would expect it to.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster July 29, 2025

Hello, Nikita!

Thank you for your feedback.

We are happy to hear the issues are fixed now.

Feel free to reach out to us if any other questions arise.

Kind regards,
Solomiia

Please login or Register to Submit Answer