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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set Dialog control default to false

Thread ID:





131090 Jun 20,2017 05:18 AM UTC Jun 22,2017 06:51 AM UTC ASP.NET Web Forms 3
Tags: Dialog
Imre Revesz
Asked On June 20, 2017 05:18 AM UTC


I have a C# based website, where I have started to use the Syncfusion asp.net Dialog control. (www.recognitiongame.com)

My problem:
I set the default behaviour of the Dialog Control with ShowOnInit(false).
But when the page loads, the dialog blink for a moment. It's annoying.

How can I set the Dialog opening, showing false by default?
(Visible="false" not good, because I can't set back by jquery.)


Arun Palaniyandi [Syncfusion]
Replied On June 21, 2017 12:29 PM UTC

Hi Imre Revesz,  
Thanks for contacting Syncfusion support.  
We can achieve this scenario by setting the style attribute for Dialog’s parent element as, display none in the code behind. Hence this will not show the Dialog content blink and display Dialog, only when we open it. Please find the below code snippet for you reference.  
        <div id="Dialog" runat="server">  
        <ej:Dialog ID="basicDialog" ShowOnInit="false" IsResponsive="True" Width="550"MinWidth="310px" MinHeight="215px" ClientSideOnClose="onDialogClose"Containment=".control" runat="server" Title="Audi Q3 Drive">  
Code behind:  
protected void Page_Load(object sender, EventArgs e)  
            this.Dialog.Style.Add("display", "none");  
Please find the below sample for your reference.  
Please check the shared sample and if the sample still not meet your requirement, please send us more information so that we will provide a solution.          
Arun P.      

Imre Revesz
Replied On June 21, 2017 08:22 PM UTC


Thanks, it works perfectly.



Arun Palaniyandi [Syncfusion]
Replied On June 22, 2017 06:51 AM UTC

Hi Imre, 

We are glad that our solution has helped you out. 

Please let us know if you have any queries in future. 

Arun P. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon