javascript - Is there any CallBack function which is called before/after data is loaded in Angular Js ng-Grid? -


presently have angular js grid pagination enabled 5 records per page example , total number of records 2000, there going 400 pages in all.

when pagination in ng-grid handled gridoption data specified per page means 1st page gridoption 1-5 rows 2nd 6-10 rows , on........

here have implemented selection functionality through checkboxes whenever row selected[checkbox becomes selected] , it's stored in selecteditems array , show selected items in grid this.....

page 1 2 rows selected

now when move on second page[pagination] , select further rows ...

page 2 here total 3 records selected

the real trouble lies here when again go previous page i.e page 1 checkboxes not checked because in pagination load data runtime pages shows following result...

the selection here disappears due dynamic nature of pagination

hope must have understood problem....

what need here callback before/after data loaded can select checkboxes have number of selection preserved

or other workaround problem helpful too.

thanks!.

can store checked value on data model storing row values? come , checked angular bindings?

i not sure of setup, in similar situation.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -