We have updated Flexmonster Software License Agreement, effective as of September 30, 2025 (list of changes)

Expanding Specific Columns or Rows using Custom API

Answered
taehong asked on September 29, 2025

I have a question regarding the expand functionality in Flexmonster, especially when using a Custom API as the data source.

 

I would like to know:

  • Is the expandData() API available when using a Custom API data source?
  • If not, what is the recommended way to programmatically expand specific columns or rows (e.g., certain members or fields) when using a Custom API?
  • Is there any workaround or best practice to achieve selective expand/collapse behavior in this scenario?

 

I would appreciate your guidance or an example on how to implement this.

1 answer

Public
Maksym Diachenko Maksym Diachenko Flexmonster September 29, 2025

Hello,

Thank you for reaching out to us.

The expandData method is indeed not implemented for custom API data sources. However, a workaround exists to simulate expanding all members of the highest-level field. The idea is to call getMembers API call on the field to retrieve all its members, and then loop through them to expand each one programmatically with the expandCell method. You are welcome to check the example: https://jsfiddle.net/flexmonster/rLgx8m31/

Please let us know if this approach would work for you.

Best regards,
Maksym

Please login or Register to Submit Answer