Data grid not rendering left with empty ejs script tags

Hi I am in .net core 5 and I am having issues the ejs are showing black no error is presented to the console.

I have the dll installed as should be.


In my header I have 


    @* 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>


In my footer I have.

    </script>

       @await RenderSectionAsync("Scripts", required: false)

     <ejs-scripts></ejs-scripts>


But when I look at the page it not outputting any JavaScript between the tags. I added the 

@addTagHelper *, Syncfusion.EJ2

As instructed by the docs but still I am presented with



My Code here





1 Reply

SK Sujith Kumar Rajkumar Syncfusion Team September 29, 2021 07:38 AM UTC

Hi David, 
 
Greetings from Syncfusion support. 
 
We checked the reported problem by creating sample following the steps mentioned in this documentation link, but unfortunately were unable to reproduce it from our end as the EJ2 Grid was properly rendered in Core 5.0 . You can check the below sample for reference, 
 
 
So please check your application with the above sample and ensure if you have missed to specify any code. 
 
If your sample is similar to the above shared one but problem still persists, then please share us the following information to validate further on this, 
 
  • Share us pictorial representation of the launched app page where Grid is not rendered.
  • The ‘ejs-scripts’ tag needs to rendered at the end of the ‘body’ element of the layout page(can be checked in the above shared sample) but in the shared code we could see that you have rendered it between scripts. So please let us know where you have defined this script tag.
  • Also let us know where you have defined the Syncfusion EJ2 tag helper(‘@addTagHelper *, Syncfusion.EJ2’).
  • Share us the Grid code file.
  • If possible share us a sample to replicate the problem or try reproducing it in the above shared sample. It would be helpful to identify your exact problem and provide the solution based on that.
 
Regards, 
Sujith R 


Loader.
Up arrow icon