View Full Version : RowExpander plugin behavior

19 May 2017, 7:22 AM

I was playing with the RowExpander plugin and noticed that the template for the body is processed when the grid renders itself, not when I click on the expand button. Our use case is to retrieve data from a backend when user expands a row and then populate the UI of the body. So we would have a React component that would do it in its componentDidMount lifecycle method. I do not see how such a scenario could be implemented based on the current implementation of this feature and I could not find anything related to it in the docs. Basically, I'm looking for a way to delay of the template rendering until the row is expanded. And I would also expect an option to unmount the component once the row collapses.

Please let me know if you have a recipe.

Thank you,

19 May 2017, 11:05 AM
There isn't a clean way to do it at the moment. We've put this in our backlog for 6.5.2.

That said, here's a somewhat unclean way to do it:


19 May 2017, 11:18 AM
Thank you!