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

Added First control, and it is not displaying

Thread ID:

Created:

Updated:

Platform:

Replies:

145632 Jul 2,2019 12:38 AM UTC Jul 2,2019 04:22 AM UTC ASP.NET Core - EJ 2 2
loading
Tags: Calendar
Wayne
Asked On July 2, 2019 12:38 AM UTC

I have setup a project but the control is not displaying.

1) I have added the NuGet Syncfusion.EJ2.AspNet.Core
2) Registered the Lincense in Startup.cs under Configure... 
    using this. Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("xyz")
3) I have added this to my _ViewImports File @addTagHelper *, Syncfusion.EJ2
4) I have added this to my _Layout.cshtml head
    <!-- Syncfusion Essential JS 2 Styles -->
    <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> 
5) I have added this to the body:
<ejs-scripts></ejs-scripts>

And this to my View
<div>
    <ejs-calendar id="calendar"></ejs-calendar>
</div>

And the control is not displaying?

How can I debug this.

I do believe the License is working, 
 bool valid = Syncfusion.Licensing.SyncfusionLicenseProvider.ValidateLicense(Syncfusion.Licensing.Platform.ASPNETCore);
 Console.WriteLine("Syncfusion valid: " + valid);
This results in true.



Wayne
Replied On July 2, 2019 01:14 AM UTC

Git it working, 

I was using "Areas" and therefor the "_ViewsImport" file needs to be duplicated to the "Views" folder for the "Area"

Ashokkumar Balasubramanian [Syncfusion]
Replied On July 2, 2019 04:22 AM UTC

Hi Wayne, 
 
We are glad to hear that you have solved your reported issue. If you need further help, please let us know. 
 
Regards, 
Ashokkumar B. 


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