title: Call JavaScript function after Telerik RadPageView finishes loading?
body: <p>I'm using Telerik UI for asp.net.  Specifically I'm using RadTabStrip with partial page postbacks to allow the user to tab through different sets of data.  When the user clicks a tab, some code executes and loads data just for that tab.  </p>
  
  <p>I've figured out how to execute codebehind: I set the <strong>OnTabClick</strong> property of the RadTabStrip, and then in codebehind I check what tab was clicked.</p>
  
  <p>E.g.</p>
  
  <pre><code>protected void tab_Click(object sender, RadTabStripEventArgs e)
          {
              if (e.Tab.Text == "Info")
              {
                  populateInfoTab();
              }
          }
  
  private void populateInfotab()
  {
      // Do some stuff
  }
  </code></pre>
  
  <p>However, I can't figure out how to execute client side javascript <strong>after</strong> a specific tab is clicked.  What I tried:<br>
  Set <strong>OnClientTabSelected</strong> property, and then add some javascript:</p>
  
  <pre><code>function tab_ClientClick(sender, args)
  {
      var tab = args.get_tab();
      if(tab.get_text() == "Info")
      {
          alert("Tab Clicked");
      }
  }
  </code></pre>
  
  <p>The problem is that I need to set the InnerHtml of some div in the clicked pageview <strong>after</strong> it is clicked.  The div does not exist on page load (that specific RadPageView is hidden) so I cannot set it then.  Once the user clicks into the tab, and after the page view loads, I need to be able to update the div's InnerHtml through JavaScript.</p>
  
  <p>How would I go about doing this?</p>