How to destroy a ui-grid?

Is there a built-in method to destroy ui-grid (angularjs) and reload it again. When I reload the grid data with ajax call, it reloads the new data but does not reset the current page number ( paginationCurrentPage) andpaginationPageSizes

+4
source share
2 answers

You can use uiGridPaginationService to reset the current page and page size. Documentation

uiGridPaginationService (grid, currentPage, pageSize)

Boosts paginationChanged and causes an update to paginate the client

Parameter grid - {Grid} - grid for which pagination has been changed currentPage - {int} - requested page number pageSize - {int} - requested page size

+2

reset ? , ajax.

0

All Articles