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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Refresh editable subgrid after onChange event

(2) ShareShare
ReportReport
Posted on by 6

hey all

In a model-driven application on a form, I'm using an editable subgrid (power apps grid component). I need to refresh the subgrid every time a change occurred.

Tried to solve this using JS, but could not achieve to refresh subgrid from change within the editable subgrid. It works if I change a field value on the form for example.

Anybody having a solution for this?

This works when called from field outside of subgrid, but not if called from onChange in subgrid.

function refreshSubgrid(executionContext) {
var formContext = executionContext.getFormContext();
var subgrid = formContext.getControl("subgrid_name");
if (subgrid) {
subgrid.refresh();
}
}

appreciate your help!

Categories:
I have the same question (0)
  • ArchitectMadhan Profile Picture
    458 on at
    Refresh editable subgrid after onChange event
    Hi,
     
    This issue might be because of losing the focus from grid. may be you can try the below method to call the OnChange event within the Grid.
     
     
    -ArchitectMadhan
     
    If this response is helpful for you, please like and accept this as solution
  • JW-28031801-0 Profile Picture
    on at
    Refresh editable subgrid after onChange event
    Please ignore, testing.
  • CU03040723-0 Profile Picture
    6 on at
    Refresh editable subgrid after onChange event
    Im calling from onChange within the subgrid already, but this will not give me access to the subgrid control. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 231

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 68 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans