refreshRibbon (Client API reference)
Causes the ribbon to re-evaluate data that controls what is displayed in it.
|refreshAll||Boolean||No||Indicates whether all the ribbon command bars on the current page are refreshed. If you specify false, only the page-level ribbon command bar is refreshed. If you do not specify this parameter, by default false is passed.|
This function is typically used when a ribbon
<EnableRule> (RibbonDiffXml) depends on a value in the form. After your code changes a value that is used by a rule, use this method to force the ribbon to re-evaluate the data in the form so that the rule can be applied.