title: Finding the Client ID for a RadGrid inside a RadLightBoxItem tag in a RadLightBox
body: <p>I'm trying to fetch the ClientID for a RadGrid control from client side using JavaScript so that I'll be able to bind data to this from the client side.</p>
  
  <p>The RadGrid is present within the RadLightBox and needs to be populated on a button click event. The markup for LightBox looks something like this.</p>
  
  <pre><code>&lt;telerik:RadLightBox ID="RadLightBox1" runat="server"&gt;
      &lt;Items&gt;
          &lt;telerik:RadLightBoxItem runat="server"&gt;
              &lt;ItemTemplate&gt;
                  &lt;telerik:RadGrid runat="server" ID="lightbox_radgrid" AutoGenerateColumns="false"&gt;
                      &lt;MasterTableView&gt;
                          &lt;Columns&gt;
                              &lt;%-- Columns not shown here --%&gt;
                          &lt;/Columns&gt;
                      &lt;/MasterTableView&gt;
                      &lt;ClientSettings&gt;
                          &lt;ClientEvents OnCommand="window_radgrid_OnCommand" /&gt;
                      &lt;/ClientSettings&gt;
                      &lt;GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" /&gt;
                  &lt;/telerik:RadGrid&gt;
              &lt;/ItemTemplate&gt;
          &lt;/telerik:RadLightBoxItem&gt;
      &lt;/Items&gt;
  &lt;/telerik:RadLightBox&gt;
  </code></pre>
  
  <p>This is the partial Javascript Code that I have written. I am able to find upto the RadLIghtBoxItem element but unable to fetch the RadGrid and it's clientID. This method is to be executed on success of a call to a web service to return the data.</p>
  
  <pre><code>function onSucessCallThis(result, userContext, methodName) {
              var radWindow = $find('&lt;%= lightbox.ClientID %&gt;');
              var LightBoxItems = radWindow.get_items();
              console.log(LightBoxItems);
              console.log(LightBoxItems.get_count());
              var item = LightBoxItems.getItem(0);
              console.log(item); //Able to fetch LightBoxItem
              var radGrid = item.FindControl("lightbox_radgrid"); //Doesn't work
          }
  </code></pre>
  
  <p>I'm not sure if this is the right way to have a radGrid inside a radLightBox. There isn't many examples of this online.</p>