Skip to main content
Dynamics 365 general forum
Answered

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

editSubscribe (0) ShareShare
ReportReport
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,305 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,305 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

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans