Author Topic: refreshDataAndView() method in angular 8 remote calls  (Read 2634 times)

KaranamAvinash

  • Newbie
  • *
  • Posts: 8
    • View Profile
refreshDataAndView() method in angular 8 remote calls
« on: October 03, 2019, 12:39:05 pm »
Hi,

I am using Angular 8 with remote calls to database to fetch data.

I have a function which will  update the database values, but changes in grids shows up only when i refresh the grid. As mention in the demo's i tried using refreshDataAndView(), but didn't figure out how to use it angular.

Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: refreshDataAndView() method in angular 8 remote calls
« Reply #1 on: October 05, 2019, 08:49:29 am »
This example show how to call public methods of pqgrid in Angular

https://paramquery.com/pro/demos/ng_method

KaranamAvinash

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: refreshDataAndView() method in angular 8 remote calls
« Reply #2 on: October 11, 2019, 11:39:18 am »
Hi,

Thanks for your answer but what code should be written in the refreshDataAndView() public method in the angular.

How to manually call the remote api to fetch data again into the grid from the parent Component in the angular.

Thanks.