title: RadGrid client binding get_masterTableView() is null
body: <p>I am setting the datasource at the client side but the get_masterTableView returns null</p>
  
  <pre><code>var tableView = radGrid
       .get_masterTableView();
  </code></pre>
  
  <p>i tried it setting on button click just to be sure that the Radgrid is completely created but it still returns null.. This is my code</p>
  
  <pre><code>&lt;h4&gt;Client Side Binding&lt;/h4&gt;
  
  &lt;telerik:RadButton 
      ID="RadButton1" 
      AutoPostBack="False"
      OnClientClicked="RadButton1_OnClientClicked"
      runat="server" 
      Text="Load Items"&gt;&lt;/telerik:RadButton&gt;
  
  &lt;telerik:RadGrid 
      ID="RadGrid1" 
      AutoGenerateColumns="False"
      runat="server"&gt;
      &lt;MasterTableView&gt;
          &lt;Columns&gt;
              &lt;telerik:GridBoundColumn
                  DataField="Name"
                  HeaderText="Name"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn
                  DataField="Age"
                  HeaderText="Age"&gt;
              &lt;/telerik:GridBoundColumn&gt;
              &lt;telerik:GridBoundColumn
                  DataField="Address.City"
                  HeaderText="City"&gt;
              &lt;/telerik:GridBoundColumn&gt;
          &lt;/Columns&gt;
      &lt;/MasterTableView&gt;
      &lt;ClientSettings&gt;
          &lt;ClientEvents OnGridCreated="RadGrid1_OnGridCreated" /&gt;
      &lt;/ClientSettings&gt;
  &lt;/telerik:RadGrid&gt;
  </code></pre>
  
  <p>and this is on the <strong>Javascript</strong></p>
  
  <pre><code>&lt;telerik:RadScriptBlock runat="server"&gt;
      &lt;script&gt;
          function pageLoad(sender, args) {
              //rebindGrid();
          }
  
          function RadButton1_OnClientClicked(sender, args) {
              rebindGrid();
          }
  
          function RadGrid1_OnGridCreated(sender, args) {
              //rebindGrid();
          }
  
          function rebindGrid() {
              var ds = dataSource();
              var radGrid = $find('&lt;%= RadGrid1.ClientID %&gt;');
              var tableView = radGrid
                 .get_masterTableView();
  
              console.log(radGrid);
  
              if (tableView) {
                  tableView.set_dataSource(ds);
                  tableView.dataBind();
                  tableView.set_virtualItemCount(2);
              } else {
                  alert('Table View is null');
              }
          }
  
          function dataSource() {
              var items = [];
  
              items.push({
                  Name: 'Enteng',
                  Age: 25,
                  Address: {
                      City: 'Dipolog City'
                  }
              });
  
              items.push({
                  Name: 'Vincent',
                  Age: 27,
                  Address: {
                      City: 'Dumaguete City'
                  }
              });
  
              return items;
          }
      &lt;/script&gt;
  &lt;/telerik:RadScriptBlock&gt;
  </code></pre>
  
  <p><strong>pageLoad</strong> doesn't work</p>
  
  <p><strong>RadButton1_OnClientClicked</strong> doesn't work</p>
  
  <p><strong>RadGrid1_OnGridCreated</strong> doesn't work</p>
  
  <p>any help would be appreciated..</p>
  
  <p>TYI</p>