Hi,
I have added Dialog control to my web page and when the page is opened the dialog is displayed by default. But it should be shown only when user clicks a button. I tried to use property visible="false", but without any difference.
You can see the same issue for the Syncfusion Dialog demo
Below is my code
<div class="control-section" id="subscriptionsContainer">
<ejs-button id="normalbtn" content="Open"></ejs-button>
<ejs-dialog id="dialogCard" content="Test" isModal="true" visible="false" animationSettings="defaultAnimation" target="#subscriptionsContainer" width="200px" height="110px">
<e-dialog-buttons>
<e-dialog-buttons>
<e-dialog-dialogbutton buttonModel="ViewBag.confirmButtonYes" click="saveCard"></e-dialog-dialogbutton>
<e-dialog-dialogbutton buttonModel="ViewBag.confirmButtonNo" click="cancelCard"></e-dialog-dialogbutton>
</e-dialog-buttons>
</e-dialog-buttons>
</ejs-dialog>
</div>
<script>
document.getElementById("normalbtn").addEventListener('click', function () {
var dialogObj = document.getElementById("dialogCard")
dialogObj.ej2_instances[0].show();
});
</script>