0
我在運行時通過用戶交互設置列過濾器時遇到問題。這裏是我的嘗試:運行時的角度UI網格集濾鏡
http://plnkr.co/edit/Ynesaq5o3HNsF5r8rXQf?p=preview
$scope.setFilter = function() {
$scope.gridApi.grid.columns[1].filters[0] = {
condition: uiGridConstants.filter.EXACT,
placeholder: '',
term: 'female'
};
$scope.gridApi.core.notifyDataChange(uiGridConstants.dataChange.ALL);
$scope.gridApi.grid.refresh();
}
字段設置和術語被添加到現場,但該數據沒有刷新。
任何想法?