Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
JavaScript IntelliSense in Visual Studio 2012 (VS11)
posted

I have followed the guide located here (http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/JavaScript_IntelliSense_Support.html).

Javascript IntelliSense works great in Visual Studio 2010.  However, our developers cannot get the Javascript IntelliSense to work in the Visual Studio 2012  IDE.  Are we doing something wrong, or is this IntelliSense support not available for Visual Studio 2012?  If not, when might we expect this to be fixed?  (We are using NetAdvantage 2013.1)

In the meantime, where can we find complete documentation of Javascript functions and events for the IG controls?

Parents
No Data
Reply
  • 8736
    Verified Answer
    posted

    Hello,

    VisualStudio2012 does not use dynamic codes defined in dll while Source-view. None of break points located in methods/constructors of any control including WebScriptManager are hit. It looks like that Visual Studio designer uses reflected properties rather than to execute real statements defined in codes of web controls. That means that it is not possible for WebScriptManager to dynamically add/register JS files which contain objects used by intellisence.

    The related question is raised in Microsoft forums, however so far no response. Development thinks that Visual Studio 2012 is not going to change its designer and restore support for dynamic codes within Source-view.

    I am aware of two work-arounds for this:

    1) Copy all .js files you mentioned into a single one and add that file to your project and add the reference to that file on the page:

    <script language="javascript"" src="/Scripts/NetAdvantage2013.1_CLR4.5_AllIntellisense.js" type="text/javascript"></script>

    Use ScriptManager instead of WebScriptManager.

    2) It is possible (but not realistic) to get around intellisence by temporary register JS files explicitly with Script Manager. Those temporary scripts can be removed when application is ready for production.

    Example:

    <asp:ScriptManager ID="ScriptManager1" runat="server">  <Scripts>    <asp:ScriptReference Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Name="Infragistics.Web.UI.Scripts.0_igControlMain.js" />    <asp:ScriptReference Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Name="Infragistics.Web.UI.Scripts.5_igObjects.js" />    <asp:ScriptReference Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.1, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Name="Infragistics.Web.UI.NavigationControls.WebDataTree.js.igWebDataTree.js" />    etc: around 40 files depending on controls used.  </Scripts> </asp:ScriptManager>

    You will find Zip file ASPNET_AJAX_Scripts.zip as well as other scripts in C:\Program Files (x86)\Infragistics\NetAdvantage 2013.1\ASP.NET\CLR4.5\Scripts path that contains all the script files for Ajax based controls.

    Replace the version above with the version of NetAdvantage product you are using.

    Refer to the link below that will give you Client Side Object Model (CSOM) document:

    http://help.infragistics.com/NetAdvantage/ASPNET/2013.1/CLR4.0/?page=Web_Client_Side_Object_Model_CSOM_Reference_Guide.html

    I hope this helps.

Children