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

0
24
Role Image


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

This is my code:

function onLoad() {
var _rowCount = Xrm.Page.getControl(“subgrid”).getGrid().getTotalRecordCount();
Xrm.Page.getControl(“subgrid”).addOnLoad(onGridLoad);
}

steps:

1. A sub-grid is a many-to-many situation

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

3. No JS control button

4. The addOnLoad button is still blocked

Image:



Source link

Leave a reply

Please enter your comment!
Please enter your name here