How to be notified when there are grid changes - Angulasjs ui-grid

Asked

Viewed 61 times

3

Is there any way to know if the grid has finished upgrading lines, or even finished loading them ?

I tried to do it this way:

$scope.gridApi.core.on.filterChanged($scope, function() {
    console.log('filter changed');
    $timeout(foo(),800);
});

However I am not getting the callback to change the grid or finish loading.

1 answer

2


According to the documentation there is an event within ui.grid.core.api called rowsRendered:

It is invoked after the cache of the visible lines is changed.

The call goes like this:

$scope.gridApi.core.on.rowsRendered($scope, minhaFuncao);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.