- Home
- Forum
- ASP.NET Core - EJ 2
- Ejs-dialog dynamic content
Ejs-dialog dynamic content
In the first load it assembles the components correctly, but in the second it is overlapping the components. I have checked that the script is removed from the header once the partial view is loaded into the dialog.
The dialog always has the same ID, and the components the same, but they are removed from view once the dialog is closed.
This a very helpful example. However, it uses two buttons to accomplish the action. First loading the partial view into the dialog. Then a button to display the dialog.
Can this be done with a single button click? I tried using a callback but this didn't seem to work.
I'm a bit new to JavaScript so some additional help here would be appreciated
Regards,
Chris
Hi Diego,
Thank you for reaching out to us with your query.
We understand your need for a single button click event to load the dynamic content into the dialog. We've prepared a sample based on your requirement. In this sample, the content is loaded dynamically using an Ajax post when you click the button to open the dialog.
Please refer to the attached sample and the video illustration below for a better understanding.
Attachment: Dialog_partial_view1410398564_(2)_95acd707.zip