ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Any Of Row clicked on ui-grid only few rows are able to expand and few rows are not able to expand

Open vittal288 opened this issue 10 years ago • 1 comments

I am using ui-grid for some application and I am not able to fire an click event for expand row functionality.

I am using cell template like this <div ng-click="**grid.appScope.expand(row,rowRenderIndex)**" style="padding: 5px;"><a href class="#337ab7" style="border-bottom:#DDDDDD;background-color: transparent!important;margin-left:10px;border:1px solid #ff0000"></a></div>

Click event code as follows $scope.expand = function(row,index) { debugger; var index = index+1; $scope.gridApi.expandable.toggleRowExpansion(row.entity); if((index % 2) == 0) $scope.rowType = true; else{ $scope.rowType = false; } }

Please provide me a solution for this.

vittal288 avatar Feb 04 '16 09:02 vittal288

Please use stack overflow and gitter for questions in future. Also check tutorials.

Here is an example http://ui-grid.info/docs/#!/tutorial/216_expandable_grid

jmalkan avatar Apr 29 '18 01:04 jmalkan