Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Hide '+' in Sub grid Using Java script

Posted on by Microsoft Employee

Hello Everyone ,

I got one requirement that i need to hide + in sub grid when there is one record active , When there is no record in the subgrid i want + to enable ,

Is there any possibility that i can achieve that , Please help me , If there is any Poc please share it .

I tried to do that with Ribbon Workbench , but I am not find the result

Thanks in Advance

Ramesh

]

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Hide '+' in Sub grid Using Java script

    Hi Ramesh,

    You can do this with JavaScript, enable rule & ribbon workbench. Create a javascript which will return true false based on your condition i.e. if record exists or not. Than using ribbon workfbench, add enable rule and add call this method.

    Refer below links-

    ribbonworkbench.uservoice.com/.../121427-enable-disable-a-ribbon-button-dynamically-based-o

    msdn.microsoft.com/.../dn932137.aspx

    community.dynamics.com/.../count-total-subgrid-records-in-dynamics-crm-using-javascript

    Hope this helps.

    Hope this helps.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Hide '+' in Sub grid Using Java script

    Hi Ramesh,

    You can do this without any code using security role by removing create access rights of the entity .

    In addition you can also do by  adding enable disable rule using ribbon work bench.Check below post-

    community.dynamics.com/.../275058

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Hide '+' in Sub grid Using Java script

    Refer the below thread:

    community.dynamics.com/.../244901

    Hiding button using Enable/Display rules in Ribbon workbench is only supported solution.

    Any method like getElementById using DOM manipulation in strictly unsupported.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans