We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No intellisense when needed to use the javascript

Thread ID:

Created:

Updated:

Platform:

Replies:

143826 Apr 6,2019 02:22 PM UTC Apr 9,2019 04:52 PM UTC ASP.NET Core - EJ 2 1
loading
Tags: General
Borislav
Asked On April 6, 2019 02:22 PM UTC

Hello! Is there a way to enable intellisense when i need to create javascript functions that relay on EJ2?

Mydeen S N [Syncfusion]
Replied On April 9, 2019 04:52 PM UTC

 
Hi Borislav , 
 
Thank you for contacting Syncfusion support. 
 
Visual Studio 2017 provides improved JavaScript IntelliSense based on information declared in TypeScript definition files (or .d.ts files). 
Follow the instruction below to enable IntelliSense for create JavaScript functions that relay on EJ2 
  1. Add the ej2.d.ts definition files to your project.
 
You can obtain ej2.d.ts file from the following sources: 
From the npm package 
  • Execute the command below in the npm CLI to install the package.
    npm i @syncfusion/ej2-js-es5
  1. Add the following string to each script file or script block where you are going to use IntelliSense:

 ///<reference path="ej2.d.ts" 
 
  1. <script type="text/javascript">
  2.     /// <reference path="../../ej2.d.ts"/>
  3.     var ajax = new ej.base.Ajax("index.html", "GET", true);
  4. </script>
you can now use IntelliSense 
 
 
 
 
 
 
 
 
Please let me know, if you have any concerns. 
 
Regards, 
 
Mydeen S N 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon