Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Answered

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

Posted on by 40

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

  • Sumanth Kusuma Profile Picture
    Sumanth Kusuma 40 on at
    RE: Is there any way to disable SubGrid including ribbon buttons using JavaScript?

    Thanks a lot Andrew :-)

  • Verified answer
    a33ik Profile Picture
    a33ik 84,313 Super User on at
    RE: Is there any way to disable SubGrid including ribbon buttons using JavaScript?

    Sumanth,

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

  • Sumanth Kusuma Profile Picture
    Sumanth Kusuma 40 on at
    RE: Is there any way to disable SubGrid including ribbon buttons using JavaScript?

    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
    a33ik 84,313 Super User on at
    RE: Is there any way to disable SubGrid including ribbon buttons using JavaScript?

    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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans