title: Finding Label in GridTableView (RadGrid)
body: <p>I have a hierarchical Telerik RadGrid that sometimes contains child entries that are empty. For these, I want to overwrite the default text "No child records to display" with something user locale specific.</p>
  
  <p>So I can do this:</p>
  
  <pre><code>    &lt;telerik:RadGrid ID ="SettingsGrid" ... /&gt;
          &lt;mastertableview ... /&gt;
              &lt;DetailTables&gt;
                  &lt;telerik:GridTableView ... /&gt;
                      &lt;asp:Label ID="NoRecordLabel" runat="server" Text="whatever"/&gt;&lt;/div&gt;&lt;/NoRecordsTemplate&gt;
  </code></pre>
  
  <p>Which causes the text "whatever" to appear when it should.</p>
  
  <p>But I obviously want to do this dynamically, but I have failed in both of two ways:</p>
  
  <p>1) By referencing my .resx file in the .ascx file. I import it's namespace and reference a certain resource as such:</p>
  
  <pre><code>Text="&lt;%$ Resx:SiteTextResources.Globals_Close %&gt;"
  </code></pre>
  
  <p>(This works in other files in the same solution)</p>
  
  <p>But this only produces empty text.</p>
  
  <p>2) I haven't been successful at retrieving the Label programatically from the code behind. I looked at this: <a href="http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-access-controls-in-norecordstemplate.aspx" rel="nofollow">http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-access-controls-in-norecordstemplate.aspx</a> but didn't get that approach to work, as I just can't seem to find the Label. I get an OutOfBoundsException, which I guess means the GetItems() method returns null.</p>
  
  <p>Any ideas? Would appreciate it a lot!</p>