locked
Make Subgrid readonly in CRM 2013 RRS feed

  • Question

  • Hi,

     I want to make subgrid add and delete buttons Readonly is it possible to make subgrid readonly?

    Thanks

    Friday, October 3, 2014 5:04 PM

All replies

  • Ribbon Workbench is a good tool to use to work with Subgrid menu items.  You can disable or remove them from the Subgrid menu using this.
    Friday, October 3, 2014 5:39 PM
  • Hi jBlaeske,

    Can you send me the Javascript code to disable it

    thanks


    Friday, October 3, 2014 8:02 PM
  • Hello Yasir,

    it is easier to remove the buttons using ribbon work bench and not using unsupported JavaScript way. ribbon workbench helps you to modify The actual XML that controls the button. You can hide the button.

    if you want to use JavaScript, use F12 - debugger that comes with ie to get the id of the button, then

    document.getElementById("idofcontrol").style.display = 'none';

    or use readonly to make the control readonl or use disabled property.

    regards

    Jithesh

    j

    Friday, October 3, 2014 10:22 PM