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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide '+' in Sub grid Using Java script

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans