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

How do I register Telerik to access functions in Core.js?

2 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gunnar
Top achievements
Rank 1
Gunnar asked on 13 Jan 2009, 07:21 AM
Hi,

We use Telerik for most of our UI-components and we are very happy with Telerik so far.

You guys have developed a quite extensive javascript-lib that we would like to use as much as possible in our application.
For example, we would like to always have access to $telerik.getClientBounds();

How do we "register" the Telerik components so we can access functions in Core.js for instance.
This without using any of the UI components, only the javascript functions in Core.js.
We don't want to manually copy Core.js etc to our project, is there another way to achive this?

Regards

2 Answers, 1 is accepted

Sort by
0
Blaize
Top achievements
Rank 1
answered on 13 Jan 2009, 09:12 AM
Hey Gunnar,
you could add a script reference to the radscriptmanager - <add name="Telerik.Web.UI.Common.Core.js" Assembly="Telerik.Web.UI" />. Now the scriptmanager will always load the embedded core.js.

Cheers,
Blaize
0
Accepted
Dimo
Telerik team
answered on 13 Jan 2009, 03:37 PM
That's right. Both telerik:RadScriptManager and asp:ScriptManager can be used.

<asp:ScriptManager ID="ScriptManager1" runat="server"
    <Scripts> 
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
    </Scripts> 
</asp:ScriptManager> 


Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Gunnar
Top achievements
Rank 1
Answers by
Blaize
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or