Issue
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:
- remove default row headers by setting to
false
enableExpandableRowHeader
- adding a custom row header by calling
$scope.gridApi.core.addRowHeaderColumn
This way you can build your own logic. I did something like that in this plunkr.
If you need more info:
- http://ui-grid.info/docs/#/tutorial/114_row_header
- http://ui-grid.info/docs/#/tutorial/216_expandable_grid
Answered By - imbalind
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.