How to Asynchronously Show a Create New Button On a CRM Sub Grid?
问题 I need to hide the "Add New" button on a sub grid until certain criteria are met. Calling Xrm.Page.ui.refreshRibbon will trigger my JS function defined in my Enable Rule, but I can't get the + button to show up. Is this unsupported, or is there some methodology to get this to work? 回答1: Seems like you have to do few extra trick. Refreshing the subgrid command bar You will find that when the form is loaded, if there is a value in the attribute you have referenced in your enable rule, the Add