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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Is there any way to disable SubGrid including ribbon buttons using JavaScript?

(0) ShareShare
ReportReport
Posted on by 42

Hi,

Based on parent StatusCode value i need to "disable/readonly/not clickable" whole subgrid including subgrid ribbon buttons.

Please suggest any MS supported way to achieve this.

Thanks

Sumanth Kusuma

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Sumanth,

    I don't think you will be able to disable the grid itself but you can hide buttons on the grid depending on the StatusCode of the parent entity. Check this article - ribbonworkbench.uservoice.com/.../489288-show-or-hide-the-add-new-button-on-form-sub-grid

  • Sumanth Kusuma Profile Picture
    42 on at

    Hi Andrew,

    Thank you for the reply.

    Can we disable the ribbon button instead of hiding it?

    Thanks & Regards

    Sumanth

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Sumanth,

    After the release of CRM 2013 there are no "Disabled" buttons. Button either visible or not.

  • Sumanth Kusuma Profile Picture
    42 on at

    Thanks a lot Andrew :-)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 72 Super User 2026 Season 1

#2
BillurSamdancioglu Profile Picture

BillurSamdancioglu 64 Most Valuable Professional

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans