Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Subgrid.addonload() not working

$
0
0

Hi, I am using below code to bind a function onload to the subgrid. If I remove line grid.addOnload I can see entire subgrid on the form and if I keep the line I can only see the header of the subgrid.

function AddEventToGridRefresh(gridName, functionToCall) {
var grid = Xrm.Page.getControl(gridName);
// if the subgrid still not available we try again after 1 second
if (grid == null) {
setTimeout(function () { AddEventToGridRefresh(gridName, functionToCall); }, 5000);
return;
}
// add the function to the onRefresh event
grid.addOnLoad(functionToCall);
}

The system I am using is Microsoft Dynamics 365 Version 1612 (8.2.2.112) (DB 8.2.2.112) on-premises. 


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images