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:
expandData()
API available when using a Custom API data source?
I would appreciate your guidance or an example on how to implement this.
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