CRM 2013 Subgrids Not Available in Control Collection onLoad
This isn’t categorized as a bug by Microsoft, but subgrid controls will not appear in the Xrm.Page.ui.controls.get() collection since the subgrids actually load AFTER the onLoad event fires. I don’t like the design, but I can see where it would provide loading performance benefits. Since there isn’t any real “supported” things you can do with a subgrid onLoad it shouldn’t really matter. And of course nobody would do any unsupported things in CRM now would they…..
See my next post to see how to make all controls, including subgrids, be disabled onLoad. You should be able to extrapolate this into attaching to the refresh event of the grid, et cetera.
Comments
2 Responses to “CRM 2013 Subgrids Not Available in Control Collection onLoad”Trackbacks
Check out what others are saying...[…] https://xrmguy.com/2014/03/03/crm-2013-subgrids-not-available-in-control-collection-onload/ […]
[…] After confirming that my code was correct I investigated CRM 2013 specific posts. According to one post CRM 2013 does not expose subgrids in the OnLoad […]