Skip to main content



No record found.

Microsoft Dynamics CRM forum

Why does the AddExistingAssoc button not appear after the dynamic CRM subgrid control writes the addLoad event?

Posted on by Microsoft Employee

I want to listen subgrid can only add one data, after I use addOnLoad, the AddExistingAssoc button is hidden, but I don't want it to be hidden, I am confused for a long time why the AddExistingAssoc button is hidden,There is no clear answer.I need your help. Thank you

1. This is my code:

function onLoad() {
var _rowCount = Xrm.Page.getControl("subgrid").getGrid().getTotalRecordCount();


 ?A sub-grid is a many-to-many situation

 ?The ribbon shields other new buttons. Only AddExistingAssoc buttons are open

 ?No JS control button




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 . . .


André Arnaud de Calavon Profile Picture

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

Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans