Today I got a requirement to Hide/Show “+” button on the Sub grid based on some conditions.
I used Ribbon workbench for doing it. But, unfortunately it was not working. After some search came to know that I am trying to customize wrong button. Actually, we should apply our commands on the highlighted button.
Here are the steps to be followed for hiding and showing the button.
Create a Webresource and write you condition in it. Make sure it returns True/False.
Create a solution in CRM and add the required entity and webresource.
Open the same solution in Ribbon Workbench.
Right-Click on the button and click Customize Command.
Its shows all the existing Command rules like Display rules, Enable rules etc..
Right click on the new customized command and click Edit Enable Rules.
Change the Id if you wish and Click on Add Step
Click on Publish.
Hope this helps.