Angular Conditional UI Grid Line Expands

I am using Angular UI Grid and extensible ui-grid plugin. Is there a way to solve for each row if the extension (+) button is displayed? By default, it is always displayed, regardless of whether there is data available on the subnet.

Thanks.

+4
source share
3 answers

Unfortunately no, at the moment there is no choice.

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

  • remove default row headers by setting false enableExpandableRowHeader
  • add custom row header by calling $scope.gridApi.core.addRowHeaderColumn

. - this plunkr.

:

+4

, !

subGridOptions :

disableRowExpandable:(condition here).
0

Source: https://habr.com/ru/post/1611288/


All Articles