angularjs - How to get the value of selected row directly in HTML using ag-grid -


i try the value of number row selected, , print in html using angularjs, no issue, have count when clic in grid column header. value of " selectedrowscounter " 0 in html, when dosn't clic in grid header

my code like

var activebuttons = function() {         var countrowsselected =    $scope.gridoptions.api.getselectedrows().length;     $scope.selectedrowscounter = countrowsselected;     console.log($scope.selectedrowscounter);     $rootscope.count.selectedrows = countrowsselected; };  $scope.gridoptions = {     rowdata: null,     angularcompilerows: true,     onselectionchanged: activebuttons, } 

there screenshot

enter image description here

i have open same subject here https://github.com/ceolter/ag-grid/issues/1023

i have added line activebuttons function , work fine

$scope.gridoptions.api.refreshview(); 

i dont knew if there solution, work now


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -