我有一個帶有外部過濾器和列過濾器的角度ui網格。 我正在使用rowsProcessor,同時應用外部過濾器,同時重置外部過濾器。在ui-grid中應用rowsProcessor之後,列過濾不起作用
我正在使用此命令重置篩選器。
$scope.gridApi.grid.registerRowsProcessor($scope.DisplayAll, 200);
$scope.DisplayAll = function(renderableRows){
renderableRows.forEach(function(row) {
row.visible = true;
});
return renderableRows;
}
一旦完成,網格會填充所有數據,但網格中存在的列過濾器不起作用。 任何人都可以解釋爲什麼會發生這種情況。謝謝!