web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Read Only Sub Grids without Add Existing/New

Rao Rapolu Profile Picture Rao Rapolu 470

There are few ways to achieve this in the Dynamics

1. Using the security roles - you can create a security role for Account: Appent To (lookups can be added to Account) and Contact - Append (because contact can be appened with lookup) and assign to the users who can only create/add + in the SUB GRID and all other users will have Read Only Sub Grid.

2 Javascript on load

Hide the Add Image Button Image for the Sub Grid control

Get the control: var MySubGridCtrl = XRM.Page.GetControl("ContactSubGrid")

if (MySubGridCtrl != null)

   {

      var AppendToAddButton = window.parent.document.getElementById ("ContactSubGrid_plusimageButton");//verify the correct name using F12

      AppendToAddButton.style.display = 'none';

   }

Comments

*This post is locked for comments