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!
Announcements
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!
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.
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.
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.
Hi @Sahil ,
I have gone through your post, I am also facing the same grid refresh issue. Did you find any solution for this.
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.
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().
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35