Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

(1) ShareShare
ReportReport
Posted on by 130

Hi Members,

 

Is there any way to refresh a sub grid using code or on click of a custom button on Entity Form in Power Portals?

 

 

Thanks!

  • Sahil Profile Picture
    130 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    I believe there are other solutions available as well. In my case, since the record gets created in the background via a Web API call, I incorporated the sorting code within the success method of the API, and that worked for me. You might consider adding a wait condition to see if that helps, although it's not the most ideal solution.

  • Sahil Profile Picture
    130 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    I believe there are other solutions available as well. In my case, since the record gets created in the background via a Web API call, I incorporated the sorting code within the success method of the API, and that worked for me. You might consider adding a wait condition to see if that helps, although it's not the most ideal solution.

  • Sahil Profile Picture
    130 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    Yes, I used a trick by clicking twice on any column via JS code in the sub-grid. On the first click, it refreshes and sorts the data, including the new record being created. On the second click, it resorts and brings your records back to the original sorting.

  • Pragatij Profile Picture
    44 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    Hi @Sahil ,

    I have gone through your post, I am also facing the same grid refresh issue. Did you find any solution for this.

  • alok2k11 Profile Picture
    2 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    Hi Sahil,

    Is this the only solution to refresh/reload the subgrid?
    $("[aria-label='Column Name']").click().  this line changes the Sorting and if record is created in background, then subgrid goes blank when code is run 2nd time.

    Need some other approach. like $("#subgridid").reload(); if possible.

  • Verified answer
    Sahil Profile Picture
    130 on at
    Re: Power Portals - How to Refresh a Subgrid on an Entity Form on click of a custom button?

    I read another post that mentioned to sort the sub-grid column via JS and that helped me to refresh the grid.   

     

    $("[aria-label='Column Name']").click(). 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics