
I GUESS I DID NOT TRY ENOUGH!!!
I FOUND MY ISSUE!!! PLEASE DISREGARD THIS POST!!!
Hi,
Using Microsoft Dynamics® CRM 2016(8.1.0.359) (DB 8.1.0.359)
I have tried everything to get this to work and the below logic does not work. I can not get the "onGridLoad" to trigger. Is there something else I need to be adding.
Xrm.Page.getControl("GridName").addOnLoad(onGridLoad);
Xrm.Page.getControl("GridName").refresh();
I have looked at the following links and neither is working for me.
https://community.dynamics.com/crm/f/117/t/271605
www.crmanswers.net/.../bind-function-to-subgrid-refresh.html
I FOUND MY ISSUE!!! PLEASE DISREGARD THIS POST!!!
*This post is locked for comments
I have the same question (0)Hi ,
Seems when you are executing or attaching the
addOnLoad event , the grid control not fully loaded.
So please try with this -
// call below method in form on load
function formonLoad()
{
var grid = Xrm.Page.getControl("GridName");
if (!grid) {
setTimeout(formonLoad, 1000);
return;
};
grid.addOnLoad(SubgridOnLoad);
}
function SubgridOnLoad()
{
}