Using gridContext.refreshRibbon() to Dynamically Show/Hide a Subgrid Ribbon Button – Dynamics 365 / Dataverse


In Dynamics 365 / Dataverse, you can use the gridContext.refreshRibbon() method to refresh the subgrid ribbon without saving or reloading the form. This is useful when you want to show or hide a ribbon button based on a form field value. The article provides an example of how to use this method to dynamically show or hide a subgrid ribbon button based on the value of a field. The JavaScript function checks the field value and returns true or false, and the refreshCaseSubgridRibbon function refreshes the subgrid ribbon. By using this method, the ribbon will refresh immediately when the field changes, without the need to save or reload the form.


Article 4w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time