title: Call Javascript from code behind after partial postback
body: <p>I have a RadTreeView in a UserControl that is in an UpdatePanel and opens in a jQuery popup window. A button within the control raises a click event that is picked up by the containing page and results in the user control adding a new node to the RadTreeView from the code behind of the user control. Once this happens I want to then call a JavaScript function (that loops through all nodes and sets their visibility based on a filter string). Ideally I want to set this script call from the same function within the user control.</p>
  
  <p>I have tried the following from code behind of the user control</p>
  
  <pre><code>ScriptManager.RegisterClientScriptBlock(
              this, 
              this.GetType(),
              "filter", 
              "filterItems('" + this.RadTV.ClientID + "','" + this.txtFilter.Text + "');", 
              true );
  </code></pre>
  
  <p>I have also tried something similar from the code behind of the parent page and registered the Script Block with the appropriate UpdatePanel.</p>
  
  <p>In both cases, the Script is never called.</p>
  
  <p>Any ideas?</p>
  
  <p>Cheers</p>
  
  <p>Stewart</p>