javascriptangularjsangular-ui-grid

Angular UI Grid conditional row expand


I'm using Angular UI Grid and the ui-grid-expandable plugin. Is there a way to decide for each row, if the expand button (+) is displayed? By default it is always displayed, no matter if there is available data in the subgrid.

Thanks.


Solution

  • Sadly no, there is not an option for that as of now.

    You can use the following to make things work as you wish:

    This way you can build your own logic. I did something like that in this plunkr.

    If you need more info: