ThirdCornerLLC / tc-grid

A declarative grid for AngularJS
MIT License
14 stars 2 forks source link

reset paging/sorting when underlying data changes #7

Closed goofygrin closed 9 years ago

goofygrin commented 9 years ago

If the underlying data changes, then we need to reset the paging options (the dropdown and the pages list). This is especially important when the number of pages is < the current page.

It would be helpful to also reset the sorting to the default.

An option in a server side control would be a "ResetPagingAndSorting" method, so I'm not sure how best to implement this (variable? watch?)