Jump to content


Reload data


  • Please log in to reply
5 replies to this topic

#1 Marty

Marty

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 September 2017 - 12:43 PM

How can we reload data in GroceryCRUD Enterprise?

 

In this case the database is updated by another button and groceryCRUD needs to reload the data.



#2 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts
  • LocationPhilippines

Posted 21 September 2017 - 05:54 AM

What do you mean another button?

 

You can actually reload the page.

 

It will reflect the latest data in the database.

 

I hope it helps... Happy GCing  :)



#3 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,137 posts
  • LocationLondon

Posted 21 September 2017 - 06:43 PM

Hello Marty,

 

If you want to refresh the grid, you can do it with 2 ways:
1. To create a custom button that will call the JavaScript: 

$('.gc-refresh').trigger('click');

2. To use the button under settings (click to the image to expand: Screen Shot 2017-09-21 at 21.42.40.png )


Posted Image

#4 darkstalker

darkstalker

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationItaly

Posted 14 February 2020 - 10:21 AM

Hi John !

 

I'm trying to refresh the grid as you said but i can't get it to work.

 

Your solution is still valid or something changed ?

 

Thanks.



#5 arif-rh

arif-rh

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 19 February 2020 - 03:17 AM

Hi @darkstalker

 

This code works for me

$('.fa-refresh').trigger('click');

 



#6 darkstalker

darkstalker

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationItaly

Posted Yesterday, 01:57 PM

 

Hi @darkstalker

 

This code works for me

$('.fa-refresh').trigger('click');

Thanks !! It indeed works !






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users