Hi Phil,
Query 1: Could you please provide me with an example on how to use EJ1 and EJ2 controls in the same ASP.NET Core project and even the same website?
We have created a simple sample with Essential JS 1 and Essential JS 2 components in ASP.NET Core application. Please find the below steps to use the Essential JS 1 and Essential JS 2 components in your application. Please find the below steps to use the Essential JS 1 and Essential JS 2 components in your application.
Step 1: Install the required Essential JS 1 and Essential JS 2 NuGet packages.
Essential JS 1 NuGet Package
Syncfusion.EJ
Syncfusion.EJ.AspNet.Core
The above mentioned Nuget packages will be available under the below link.
Step 2: Open the _ViewImports.cshtml to add the tag helpers for Syncfusion.EJ and Syncfusion.EJ2 package.
|
@using Syncfusion.JavaScript
@addTagHelper "*, Syncfusion.EJ"
@addTagHelper "*, Syncfusion.EJ2"
|
Step 3: Add the compatibility styles and script references of Essential JS 1 and Essential JS 2 components in the _Layout.cshtml file.
|
_Layout.cshtml
<head>
@* Syncfusion Essential JS 1 Styles *@
@* Syncfusion Essential JS 2 Styles *@
</head>
|
Step 4: Add script manager of Essential JS 1 and Essential JS 2 components at the end of body tag in _Layout.cshtml file. We need to extend the ej namespace with Syncfusion to set the compatible between Essential JS 1 and Essential JS 2.
|
_Layout.cshtml
<body>
@RenderSection("scripts", required: false)
<script>
$.extend(ej, Syncfusion);
</script>
<ej-script-manager></ej-script-manager>
<ejs-scripts></ejs-scripts>
</body>
|
Step 5: Render the Essential JS 1 and Essential JS 2 components in the view page.
|
Index.cshtml
<h2> Essential JS 1 - Date Picker Component </h2>
<ej-date-picker id="datepicker" value="@DateTime.Now"></ej-date-picker>
<br /><br />
<h2> Essential JS 2 - Calender Component </h2>
<ejs-calendar id="calendar"></ejs-calendar>
|
The above sample can be download from the below link.
Please refer the below links for the references.
Query 2: is there a roadmap that shows when an individual control (or groups) will be ported from EJ1 to EJ2?
Currently we have planned the below list of components for Essential Studio Volume 2, 2018 release which will be tentatively available by May 2018.
- BulletGraph
- ColorPicker
- GroupButton
- HeatMap
- RangeNavigator
- RichTextEditor
- Sparkline
- TreeMap
We are already planning to bring most of the Essential JS 1 controls to Essential JS 2 based on customer interests. We like to get more information on list of controls you are interested and with brief summary of use cases. So that, we can log your request and give further updates whenever those are available.
Please let us know if you have any concerns.
Regards,
Sridurgha U