Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

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();
Xrm.Page.getControl("subgrid").addOnLoad(onGridLoad);
}

2.steps:

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

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

 ?No JS control button

3.Image:

 QQ_FE564772_1.jpgQQ_FE564772_22.jpg

_AE5FE14FFE5647725F00_20220115173739.png

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans