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.
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 applyangularGridInstance.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.