Hide Sub Grid ‘+’ button in Microsoft Dynamics CRM

Hi Folks,

We generally get these scenario lot of times in our requirement as hiding “+” button in Sub Grid.

We can achieve this in two ways .

Using un supported way in javascript and hiding the element :

http://”/webresources/new_Jquery.js”

$( document ).ready(function() {
if (parent.document.getElementById(“subgridname_contextualButtonsContainer”) != null ) {

parent.document.getElementById(“subgridname_contextualButtonsContainer”).style.display=’none’;}

});

Here subgrid name need to be replaced by your subgrid name

Ribbon Work Bench 2016 :

if you didn’t download Ribbon Work Bench you can download it from here Click Here .

Capture

Note : Hiding the + button does not mean users cannot create new records, allowing or forbidding users to create new records should  be configured in their security roles.

 

Hope this helps 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s