We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Horizontal scroll is not displayed when using the option grid.autoSwitchToCompact = false

Answered
leandro f asked on June 27, 2024

Hello, I would like to display my report with the classic layout regardless of the number of columns being displayed, however when using the option `grid.autoSwitchToCompact = false` it is not possible to view all the data because the table does not display horizontal scrolling.

Is there any other option to display the horizontal scroll?

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster July 1, 2024

Hello,

Thank you for reaching out to us.

Please note that the behavior of non-scrollable rows is intended in the classic view. This way, the string members are always shown side by side with numeric data, which you can scroll. With the classic grid layout and autoSwitchToCompact set to false, the frozen rows area can become too large, leaving no space to show the data. In the default flow, when this option is set to true, Flexmonster prevents this from happening by automatically switching to a compact view.

There is currently no direct solution for making the rows area scrollable. However, you can use the following workarounds to display many rows in the classic view:

  • Increase the size of the HTML container with Flexmonster.
  • Reducing the column width by redefining the table sizes.
  • Try using Flexmonster in full-screen mode so that there is more place for the columns to be drawn.
  • Place the component into a resizable div so that it can be expanded when needed. For example: https://jsfiddle.net/flexmonster/esp9x2qk/.

Please let us know if some of these suggested solutions work for you.

Best Regards,
Maksym

Public
leandro f July 9, 2024

Hello, thanks for the response. How do I request a feature to make it possible to scroll frozen columns?

Public
Maksym Diachenko Maksym Diachenko Flexmonster July 11, 2024

Hello,

Thank you for your reply.

We appreciate your suggestion to enable scrolling for frozen columns. Our dev team thoroughly reviewed this feature, and we do not see how to implement it without affecting the user experience. The best solution we've come up with in terms of UX is the default component's behavior when the grid is switching to a compact view. We fully understand the desire to have the ability to add more rows and keep the classic view at the same time. To achieve this, we suggest trying out the approaches described in our previous reply.

Feel free to contact us if any other questions arise.

Best Regards,
Maksym

Please login or Register to Submit Answer