title: Binding a hyperlink in a Telerik grid to data on the client side
body: <p>I have a page that contains a RadGrid.  One of the columns contains a hyperlink in an edit template as so:</p>
  
  <pre><code>&lt;telerik:GridTemplateColumn HeaderText="Asset Name" FilterControlAltText="FilterAssetName"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:HyperLink ID="hplEditAsset" runat="server" ForeColor="Blue" AutoPostBackOnFilter="true"&gt;&lt;/asp:HyperLink&gt;
      &lt;/ItemTemplate&gt;
  &lt;/telerik:GridTemplateColumn&gt;
  </code></pre>
  
  <p>I'm loading the data through a webservice, so I'd like to bind data to the grid on the client side. I'm trying to access the hyperlink in a javascript function as follows:</p>
  
  <pre><code>function gridRowBound(sender, args) {
     var row = args.get_item()
     var link = $telerik.findElement(row , 'hplEditAsset');
     var d = args.get_dataItem();
  
     link.innerHtml = d.Url;
     link.outerHtml = d.UrlDescription; 
  } 
  </code></pre>
  
  <p>The data being bound to the grid is in the form of List, and MyDataRow has properties named Url and UrlDescription.</p>
  
  <p>When I run the code, row is set to "tr#ctl00_MainContent_QuickScanGrid_ctl00__0.rgRow" according to Firebug. However, the script fails on the next line and link is never set.</p>
  
  <p>How do I access that element so that I can bind the hyperlink to the data on the client side?</p>