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: