Notifications
Announcements
No record found.
Hi Friends,
Can we make a subgrid read only through javascript . so that user can not click on subgrid
Hi partner.
What's the kind of subgrid did you use? Normal subgrid or editable subgrid?
If you are using normal subgrid, make it read only also means hide the "+" button, this you could use Ribbon Workbench to do this. Here is the steps for you.
https://ribbonworkbench.uservoice.com/knowledgebase/articles/489288-show-or-hide-the-add-new-button-on-form-sub-grid
If you are using editable subgrid, I suggest that you could put 2 subgrid on the form and one is normal and the other is editable, when the condition triggered, just hide the editable one and show the normal one.
You could hide or show the subgrids by controlling their tabs.
Xrm.Page.ui.tabs.get(tabname).sections.get(sectionname).setVisible(true);
Hope it helps.
Best Regards,
Leo
Unfortunately, there is no any way to make subgrid as read only. You could do one thing here, just remove + button from sub-grid.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 170 Super User 2025 Season 2
#ManoVerse 61
Gerardo RenterÃa Ga... 52 Most Valuable Professional