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
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
Post a Comment