This is a migrated thread and some comments may be shown as answers.

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

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Otto Neff
Top achievements
Rank 2
Otto Neff asked on 09 Feb 2012, 12:40 PM
Hi,

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">
    </telerik:RadListBox>
</div>
to get the script loaded into the WebRessource.
But this is not very clean. 

 Kind regards.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 10 Feb 2012, 01:52 PM
Hi,

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,
Vasil
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
Otto Neff
Top achievements
Rank 2
Answers by
Vasil
Telerik team
Share this question
or