⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Reload data



Marty
  • profile picture
  • Member

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.


larasmith
  • profile picture
  • Member

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  :)


web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 21 September 2017 - 18: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: [attachment=1237:Screen Shot 2017-09-21 at 21.42.40.png] )


darkstalker
  • profile picture
  • Member

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.


arif-rh
  • profile picture
  • Member

Posted 19 February 2020 - 03:17 AM

Hi @darkstalker

 

This code works for me

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

 


darkstalker
  • profile picture
  • Member

Posted 24 February 2020 - 13:57 PM

 

Hi @darkstalker

 

This code works for me

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

Thanks !! It indeed works !