Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Up Program - Building model-driven apps w...
Unanswered

Refresh subgrid chart using JavaScript

(1) ShareShare
ReportReport
Posted on by 306
Hi, 
 
I have a subgrid on a form, which I want to refresh using JavaScript when a custom page is closed. When the subgrid is shown as a 'normal' subgrid (not a chart) on the form, it refreshes as expected. However, If select 'Show chart only', the chart is not refreshed by the JavaScript. The user has to hit the refresh button to see the new records in the chart.  
 
This is the JavaScript I use to refresh the subgrid:
formContext.getControl("SubgridName").refresh();
 
 
 
The weird thing is, that I am 100% sure this was working at one point, because I demoed the functionality for my colleagues where the chart refreshed when the custom page was closed.
 
Is there any other way, to refresh a subgrid or chart? Or could this potentially be a bug?
 
Any help is appreciated. 
Categories:

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

Leaderboard > Microsoft Power Up Program Community

#1
w.p Profile Picture

w.p 288

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 138 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 80 Super User 2025 Season 1

Featured topics