Problem with RadScriptmanager and Page.LoadControl (missing JS in WebRessource)

2 posts, 0 answers
  1. Otto Neff
    Otto Neff avatar
    39 posts
    Member since:
    Jul 2011

    Posted 09 Feb 2012 Link to this post


    I've a MasterPage with the RadScriptManager on it.

    A default.aspx opens a RadWindow which is in a User Control, in this Control is a RadButton which opens a RadTooltip (using RadToolTipManager) with another control. In this Control is a RadListView

    Somehow the the RadScriptmanager does not include the Telerik JS File in the WebRessource for the RadListView, althougth it's rendered. See the attached picture.

    Is there any Command where to tell the RadScriptmanager to include certain JS Files?
    (In my case Telerik.Web.UI.ListBox.RadListBoxScripts.js ) for RadControls used in dynamic loaded Controls.
    I was unable to find out why the RadScriptmanager isn't able attach the Scripts. 
    The only work-around was to put a the RadListBox Control on the page where the Tooltip is loaded
    like this 
    <div style="displaynone;">
        <telerik:RadListBox runat="server" ID="listBox">
    to get the script loaded into the WebRessource.
    But this is not very clean. 

     Kind regards.
  2. Vasil
    Vasil avatar
    1604 posts

    Posted 10 Feb 2012 Link to this post


    The user control in which the ListBox is located, should be loaded on Page_Load with Visible="true" at this stage of the ASP's life cycle.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top