<e-content-template> not working in Dialog

Hi,

I faced a problem where the <e-content-template> might be the roadblock for implementing Dialog component in my project. I was able to run the project by using <ejs-dialog> without <e-content-template>. When I added <e-content-template>, the project will run into SystemNullReference error.
Below are the differences I found between my project and the demo project in https://s3.amazonaws.com/files2.syncfusion.com/dtsupport/forum/148846/ze/Grid_inside_dialog-1295085299.zip

Hopefully you can help me to solve this problem. Thanks in advance.


My ProjectSyncfusion Demo Project
1. Dependencies

2. The Content Template (when search "content" inside the Solution Explorer)


3 Replies 1 reply marked as answer

RK Revanth Krishnan Syncfusion Team May 25, 2021 11:58 AM UTC

Hi Bai, 
 
 
Greetings from Syncfusion. 
 
 
We have validated your query “SystemNullReference error occurs when using the ‘<e-content-template>’ in the dialog component.” 
 
We tried to reproduce the issue from our end in the following ways, 
  • Analyzed and ensured the code snippets used the sample shared.
  • Also, ensured the issue by using the package version ’18.2.0.48’ in the shared image.
  • Also, ensured the provided screenshot of the dependencies and ensured in the sample.
 
But we couldn’t reproduce the issue from our end. We have attached the video for your reference, 
 
Can you please share us with more following details, 
  • The code snippet of the dialog used in your application.
  • The video illustration of the reproducing issue.
  • Please share us with the issue reproducible sample or please modify the already shared sample by you with the issue reproducing code.
 
The above details will be helpful for us to validate and reproduce the issue from our end and assist you at the earliest. 
 
Regards, 
Revanth 



BY Bai Yuan May 25, 2021 04:08 PM UTC

Hi, I have attached the zip file that contains the modified demo project and the videos regarding on the SystemNullReference error.
Another thing that I noticed is that when I mouse over the e-content-template, that is an additional Syncfusion.Javascript.ContentTemplate inside my project. The comparison is shown in the table below. May I know will the JavaScript.ContentTemplate clash with the EJ2.ContentTemplate?

My ProjectSyncfusion Demo Project



Attachment: Demo_Project_582fddd1.zip


RK Revanth Krishnan Syncfusion Team May 26, 2021 07:54 AM UTC

Hi Bai, 
 
 
Good day to you. 
 
 
We have further validated your query and analyzed the screenshots and we suspect that the issue may have occurred because the content template is used for both EJ1 and EJ2 dialog, there will be a conflict between content templates while using both EJ1 and EJ2 on the same project. We would recommend you to replace all the EJ1 Dialog with EJ2 Dialog in your application project to resolve this conflict.   
 
Please refer to the following UG document for migrating EJ1 to EJ2. 
 
Regards, 
Revanth 


Marked as answer
Loader.
Up arrow icon