- Home
- Forum
- ASP.NET Core - EJ 2
- Added First control, and it is not displaying
Added First control, and it is not displaying
I have setup a project but the control is not displaying.
<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" />
<!-- Syncfusion Essential JS 2 Scripts -->
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>
<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.
SIGN IN To post a reply.
4 Replies
WA
Wayne
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"
AB
Ashokkumar Balasubramanian
Syncfusion Team
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.
DA
David
November 27, 2021 05:14 PM UTC
I am using a custom layout file and its not working for me.?
BC
Berly Christopher
Syncfusion Team
November 29, 2021 07:56 AM UTC
Hi David,
We can render the Syncfusion components with custom layout page as given the instructions from the below blog.
For your convenience, we have prepared the sample by creating the custom layout page named as “_MyLayoutPage” and attached it below.
Regards,
Berly B.C
SIGN IN To post a reply.
- 4 Replies
- 4 Participants
-
WA Wayne
- Jul 2, 2019 12:38 AM UTC
- Nov 29, 2021 07:56 AM UTC