I have js error "TypeError: Cannot set property 'eventManager' of null ..." on opening record in CRM online. It was working 1-2 weeks ago and I didn't change anything. It seems that last CRM system update contains some changes regarding js. I have figured out that I have this error only if I am trying to add onload event to the subgrid(https://msdn.microsoft.com/en-us/library/dn932126.aspx#BKMK_subgridAddOnLoad). Error popup is shown only sometimes. But even if it not shown then Add button (+) and other is missing in that subgrid. If I disable function where I add onload event to the subgrid everything works fine.
Does anybody have this problem during last 1-2 weeks?
I have CRM version 8.2.1.207. Here more detail error:
TypeError: Cannot set property 'eventManager' of null
at Mscrm.TurboForm.Control.ViewModel.SubGridViewModel.initializeTurboGridControl ([myCrmUrl]_static/form/formcontrols.js?ver=1076596692:17743:27)
at Mscrm.TurboForm.Control.ViewModel.SubGridViewModel.get_turboGridControl ([myCrmUrl]_static/form/formcontrols.js?ver=1076596692:17662:18)
at Mscrm.FormControls.ClientApi.XrmTurboFormControlSubGrid.addOnLoad ([myCrmUrl]_static/form/formcontrols.js?ver=1076596692:10879:19)
at addParticipantGridEvents ([myCrmUrl]%7B636321977380000207%7D/WebResources/dyna_Course_JScript?ver=1076596692:229:25)
at eval (eval at RunHandlerInternal ([myCrmUrl]form/ClientApiWrapper.aspx?ver=1076596692:153:1), <anonymous>:1:1)
at RunHandlerInternal ([myCrmUrl]form/ClientApiWrapper.aspx?ver=1076596692:158:1)
at RunHandlers ([myCrmUrl]form/ClientApiWrapper.aspx?ver=1076596692:117:1)
at OnScriptTagLoaded ([myCrmUrl]form/ClientApiWrapper.aspx?ver=1076596692:232:1)
at [myCrmUrl]form/ClientApiWrapper.aspx?ver=1076596692:201:1
*This post is locked for comments