Telerik JS Intellisense in separate JS file.

8 posts, 1 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 27 Jun 2011 Link to this post

    Hi all,

    I've read the post here: http://www.telerik.com/support/kb/aspnet-ajax/general/adding-visual-studio-intellisense-support-for-radcontrols.aspx and then I noted a forum post showing how to get this functionality in a separate JS file.

    So, I have this:

    //Dashboard.js
    /// <reference name="MicrosoftAjax.js"/>
    /// <reference name="Telerik.Web.UI.Common.Core.js" assembly="Telerik.Web.UI"/>

    and then I have Dashboard.aspx reference Dashboard.js:

    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True" EnablePageMethods="True">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Path="~/Scripts/Dashboard/Dashboard.js" />
        </Scripts>
    </telerik:RadScriptManager>

    I continue to not see the intellisense shown in screenshots. Doing $telerik does not find anything in the intellisense dropdown.

    What am I doing wrong?

    Thanks,

    Sean
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 30 Jun 2011 Link to this post

    Hello Sean,

    I have tried the sample project attached to this forum post and it worked as expected on my side (VS 2008 and VS 2010). Could you please give it a try and let me know whether it works as expected? More information about Javascript Intellisense is available here.

    I hope this helps.

    Kind regards,
    Martin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 30 Jun 2011 Link to this post

    Hello Martin,

    I tried the sample project you referenced. Here is what I have found: Intellisense worked fine in the JsStorage.js file, but when I moved it to /Scripts/JsStorage.js the Intellisense stopped working.

    Is there additional steps needed to support intellisense in files not located in the 'root' level? 
  5. Answer
    Martin
    Admin
    Martin avatar
    811 posts

    Posted 04 Jul 2011 Link to this post

    Hello Sean,

    Following your feedback I moved the .js file in a separate folder, but Javascript Intellisense still worked as expected. I am attaching two screenshots that show the results I got in VS 2008 and VS 2010. Note that you may need to update the Javascript Intellisense (ctrl+shift+J) after you load your project in VS.

    I hope this helps.

    Best wishes,
    Martin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 07 Jul 2011 Link to this post

    Hi,

    I'm continuing to look into this, but I have another question. In the web.config provided you have this referenced assembly:  <add assembly="Telerik.Web.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>

    First, I was wondering -- where does this reference come from? I have never seen the Telerik.Web.Design DLL before. I found it on my computer in one other project, but not in the solution I am working on -- nor in the sample attached.

    In addition, I tried copying the bin folder into my own project, but was finding that the XML file was being lost and NOT regenerated during every clean build. Is there something I need to be doing to trigger the generation of this file?

    Thanks

    Sean
  7. Hus Damen
    Hus Damen avatar
    33 posts
    Member since:
    Dec 2009

    Posted 13 Jul 2011 Link to this post

    Hi,

    Some time ago I had problem related to design.dll file and after some search in the web i found this blog post:

    http://blogs.telerik.com/aspnetmvcteam/posts/09-03-06/meet_telerik_web_design_dll.aspx

    Maybe it will help.

    Thanks.

    Hus
  8. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 14 Jul 2011 Link to this post

    I went ahead and opened a ticket for this. Good luck to anyone who has this issue in the future! :)
  9. Martin
    Admin
    Martin avatar
    811 posts

    Posted 15 Jul 2011 Link to this post

    Hello Sean,

    I have already answered the support ticket you have opened on the same topic. To make the answer available for our community I am pasting it here as well:

    Please note that Telerik.Web.UI.XML file has nothing in common with the Javascript Intellisense. I have run your project in VS 2010 and it worked as expected (check the attached images). Based on that I would like to emphasize on the following:

    • - In external .js file it is required that you have the following declarations at the beginning of your .js file:

      ///<reference name="MicrosoftAjax.js"/>
      ///<reference name="Telerik.Web.UI.Common.Core.js" assembly="Telerik.Web.UI"/>

    • - In a WebForm file you must have a RadScriptManager / MS ScriptManager under VS 2010 or MS ScriptManager under VS 2008 and register Telerik.Web.UI.Common.Core.js as explained here.

    In both the cases above you may need to update your javascript intellisense (ctrl + shift + j) after you start VS.


    I hope this helps.

    Kind regards,
    Martin
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017