Simple setup test not working.

I'm trying to add EJ2 to an older project and I think I'm doing everything correctly,  but I can't even get a calendar control to show up.
here's what I've done:
1. added package Syncfusion.EJ2.AspNet.Core (18.3.0.42) via Visual Studio 2019 Manage NuGet packages option.

2. added to the _testLayout <head> section   
    <link rel="stylesheet" rel='nofollow' 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>
and to the end of the body section
    <!-- Syncfusion Essential JS 2 ScriptManager -->
    <ejs-scripts></ejs-scripts>

3.  In the ConfigureServices method of Startup.cs, I register the license.  I got the license from the website, I chose version 18.3.0.42
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("blah");

4.  I build a simple test page
@{
    Layout = "_testLayout";
}

<p>before calendar</p>
<ejs-calendar id="calendar"></ejs-calendar>
<p>after calendar</p>

it's not rendering.  attached is a screenshot.

What step did I miss?  I'm also not seeing any error in any console.

thank you


Attachment: ej2_not_working._8981cadb.zip

2 Replies 1 reply marked as answer

GA Gene Allen October 21, 2020 07:07 PM UTC

Woohoo!   I found the problem.
While I had removed the reference to Syncfusion.EJ, 

I missed the @addTagHelper "*, Syncfusion.EJ" from _ViewImports.cshtml

I removed it and now the calendar shows up, just like it should.

Marked as answer

SN Sevvandhi Nagulan Syncfusion Team October 22, 2020 08:13 AM UTC


Hi Gene, 



We are glad to hear that you have found the solution. Please get back to us if have any other queries. 


Regards, 
Sevvandhi N 


Loader.
Up arrow icon