web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to refresh a subgr...
Power Pages
Unanswered

How to refresh a subgrid on a modal popup unload

(0) ShareShare
ReportReport
Posted on by 10

Hi everyone

 

I have a basic page (Entity form) which contains a subgrid (added as a metadata record) with an Add button to add new records. On clicking the Add button, a modal form pops up. Currently, when we use the modal popup to create a new record and then close it, the subgrid on the calling page doesn't refresh to show the new record.

 

How can I get the subgrid to refresh?

 

Categories:
  • aofosu Profile Picture
    105 on at
    Subgrids display related records of a parent record that has been created. In your scenario, ensure that your entity form is in edit mode to show the subgrid. If it is configured to display related records on that form, then the subgrid records will be shown each time a record is created.
  • GWham Profile Picture
    58 Moderator on at
    I think you can refresh by simulating a column click via JS. Maybe you can add something like this to the modal close event?
     
    $("[aria-label='Column Name']").click(). 
    
     
    Alternatively something like this might work.

    $('#myModal').on('hidden.bs.modal', function () {
        $("#subgrid_element_id")[0].control.refresh();
    });




Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 4

Last 30 days Overall leaderboard