s-yadav / angulargrid

Pinterest like responsive masonry grid system for angular
MIT License
277 stars 105 forks source link

angular grid hide when filter the records. #129

Open techverx opened 7 years ago

techverx commented 7 years ago

Hi guys, I have products array $scope.products and fetch records from database everything is perfect and grid is showing.

When I apply filter like I query records from database and reassign the records to $scope.products but grid vanish. So I apply angularGridInstance.gallery.refresh() but it not works.

After that I add timeout of 2 seconds and then refresh the grid using angularGridInstance.gallery.refresh() in that case grid start showing.

I don't want to add 2 seconds delay everytime when I filter records. Please suggest any better solution.

Thanks.