I try to get subgrid control to set it's unvisible. Here my code
function OnReady(){
var subgrid = document.getElementById("documents_subgrid");
if (subgrid == null) {
setTimeout(OnReady(), 1000);
return;
}
}
This code works onLoad. It worked in CRM2011, but don't work in CRM2013
Please, help