Display Syncfusion Component inside of Syncfusion Dialog without using

Hi,

I have to display Syncfusion Calendar inside of Syncfusion Dialog. From my understanding, I need to put any Syncfusion Component inside of <e-content-template> for the Syncfusion Dialog to render the Component.


However, after doing so, the system will run into SystemNullReference error.


I've also noticed that when I mouse-over <e-content-template> the intellisense will display both "Syncfusion.EJ2.ContentTemplate" & "Syncfusion.JavaScript.ContentTemplate" reference. I think this happen because I am using both EJ1 & EJ2 component in my project which might cause some conflict. 


I think that this issue is similar to this thread:

https://www.syncfusion.com/forums/165756/e-content-template-not-working-in-dialog


However, due to some issue, I still need to use some component from EJ1 and unable to fully migrate to only using EJ2 component.

Is there any other way to display Syncfusion Component inside of Syncfusion Dialog without using <e-content-template>?


2 Replies

GK Gunasekar Kuppusamy Syncfusion Team July 10, 2021 04:27 AM UTC

Hi Key,


Greetings from Syncfsion support.


We are currently validating your query `Is there any other way to display Syncfusion Component inside of Syncfusion Dialog without using <e-content-template>`. Will will update the further details within two business days on or before 20th July .


Regards,
Gunasekar



GK Gunasekar Kuppusamy Syncfusion Team July 13, 2021 11:08 AM UTC

Hi Key,


Good day to you.


We have validated your reported query `Is there any other way to display Syncfusion Component inside of Syncfusion Dialog without using <e-content-template>?`

Yes, we can render the other components using partial view and ajax. We have prepared a sample for your reference

Sample: https://www.syncfusion.com/downloads/support/forum/167054/ze/DI6316~11022675965

Refer to this KB for more details about the partial view

https://www.syncfusion.com/kb/9630/how-to-render-syncfusion-components-in-partial-view

Please check the sample and KB and let us know is the solution helps


Regards,
Gunasekar


Loader.
Up arrow icon