Hi Marcel Heitlager,
Thanks for contacting Syncfusion Support.
We have tried to replicate this issue and we can replicate. After validating, we found that this issue is because after the dynamic content is loaded as the Dialog’s content, the element is not refreshed properly and so the scrollbar doesn’t occur. Hence in order to resolve this issue we need to refresh our Dialog after the AJAX content is loaded to DialogContent using the Dialog public refresh method. Please find the below code snippet.
|
DialogObj = $("#questionPopup").ejDialog("instance"); // take the Dialog instance before get the getJSON function
$.getJSON($("#hdnPopupPath").val() + "GetQuestion/" + key, {}, function (data) {
$("#questionAnswer").empty();
$("#questionAnswer").append(data);
DialogObj.refresh(); // refresh the Dialog after the new data is appended
spinnerObj.hide();
});
|
We have also prepared a sample below for your reference.
API Link:
Please check the shared sample and details and let us know if you need any further assistance.
Regards,
Arun P.