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

3 posts, 1 answers
  1. Gunnar
    Gunnar avatar
    17 posts
    Member since:
    Jun 2008

    Posted 13 Jan 2009 Link to this post


    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?

  2. Blaize
    Blaize avatar
    88 posts
    Member since:
    Oct 2006

    Posted 13 Jan 2009 Link to this post

    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.

  3. Answer
    Dimo avatar
    8407 posts

    Posted 13 Jan 2009 Link to this post

    That's right. Both telerik:RadScriptManager and asp:ScriptManager can be used.

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

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top