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