Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your ASP.NET Core application to use our components.
To get start with ASP.NET MVC application, need to ensure the following software to be installed on the machine.
The following steps to create ASP.NET MVC Application.
Step 1: Create ASP.NET MVC Application with default template project in Visual Studio.
Step 2: Once your project created. We need to add Syncfusion EJ2 package into your application by using
NuGet Package Manager.
NuGet package manager.
Install the Syncfusion.EJ2.MVC4 package to the application.
After installation complete, this will be included in the project. You can refer it from the Project Assembly Reference.
We need to install NewtonSoft.JSON as a dependency, since Syncfusion.EJ2 dependent to
Step 3: Add
Syncfusion.EJ2 namespace reference in
<namespaces> <add namespace="Syncfusion.EJ2"/> </namespaces>
<system.web> <compilation> <assemblies> <add assembly="Syncfusion.EJ2" Version=15.3400.0.27, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> </system.web>
<head> @* Syncfusion Essential JS 2 Styles *@ <link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/material.css" /> @* Syncfusion Essential JS 2 Scripts *@ <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script> </head>
Step 5: Adding Script Manager in layout page
Step 6: Add the below code to your Index.cshtml view page which is present under Views/Home folder, to initialize the chart.