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.
Unfortunately, activation email could not send to your email. Please try again.

Dynamic ejDialog

Thread ID:





129053 Feb 23,2017 08:54 AM Feb 24,2017 07:28 AM Angular 1
Tags: ejDialog
Asked On February 23, 2017 08:54 AM


How can I add ejDialog dynamically into HTML with Angular2 component inside as content? I couldn't find any working solution for this scenario, everywhere it's already hardcoded into HTML which won't work for me..

Rekha J [Syncfusion]
Replied On February 24, 2017 07:28 AM

Hi Me, 
Thanks for contacting Syncfusion support. 
We can add components dynamically by using dynamic component. You need to declare dynamic component in HTML page. In component class file, you can create ej-dialog dynamically and properties of dialog are mapped to its values in the constructor. 
For your reference, we have created a simple sample and the sample is available in: 
Please refer to the below link for adding dynamic component:  
If this is not your requirement, could you please provide the below details. 
1.       Do you want to dynamically create a Dialog element in DOM? 
2.       Or do you want to change the content of the dialog dynamically? 
The details which will helpful to provide appropriate solution at the earliest. 


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.

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.