Switching between flat and regular data table presentation

Answered
Nikita asked on March 8, 2024

Is there a way of switching between flat and regular aggregated table view by the user? We know we can supply it in options but we are not sure if its possible to give such a handle to the user.
Also, when we have regular aggregated view and we have an image in rows (see the issue: https://www.flexmonster.com/question/show-images-in-columns-using-base64-or-links/) is it possible to expand all rows to show all images right away at first load time?

4 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 11, 2024

Hello, Nikita!
 
Thank you for reaching out to us.
 
Kindly note that you can switch between flat, classic, and compact Flexmonster views on the UI using the Options Toolbar tab.
Here is a short video tutorial on how to change the view type using Toolbar: https://www.youtube.com/watch?v=Cz9kK312Whw&t=76s.
 
The Toolbar is hidden by default and can be enabled while creating a new Flexmonster() instance as follows:

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    //your report here
  },
});

 
Regarding your question about expanding all multilevel hierarchies simultaneously, you can configure the described expanding behavior in the report or use the expandAllData() API call.
1. To configure expands in the report, you should configure the expandObject in report.slice as follows:

report:{
slice: { expands: { expandAll: true, },
// other slice properties },
// other report properties
}

2. Here is a JSFiddle example of how to expand all rows and columns using our API call: https://jsfiddle.net/flexmonster/eyz8evf6/
 
Hope you will find our answer helpful.
 
Kind regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 19, 2024

Hello, Nikita!
 
Hope you are doing well.
 
Our team is wondering if you had some time to look through our previous letter.
Could you please let us know if there are any further questions regarding switching between flat and compact views from the UI and expanding all multilevel hierarchies?
 
Looking forward to hearing from you.
 
Kind regards,
Solomiia

Public
Nikita March 19, 2024

Hi Solomiia,
Sure, thanks a lot! It's what we need. 
Nikita

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 20, 2024

Hello, Nikita!

Thank you for your feedback.

We are happy that everything works well for you.

Do not hesitate to contact us if any other questions arise.

Regards,
Solomiia

Please login or Register to Submit Answer