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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show the EJWaitingPopup control during postback?

Platform: ASP.NET Web Forms |
Control: WaitingPopup |
.NET Framework: 4.5.1 |
Product Version:


You can control the visibility on ejWaitingPopup initialization, by using its showOnInit property.


WaitingPopup contains showOnInit property that allows the popup to display over a target on control initialization itself.

$(“#TagID”). ejWaitingPopup ({ showOnInit: true});

Property and Tag Definition

  • #TagID- id of the Container, where you achieve the ejWaitingPopup.
  • showOnInit - property for handling the visibility of the control. By default showOnInit property is set as false.

Refer to the following code example.

In the following scenario, when you change the dropdown value, depending on the value, EJGrid changes the datasource dynamically in AJAX postback. The WaitingPopup is displayed when the AJAX postback starts and hides when the AJAX postback completes.


<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="GridPanel" runat="server" UpdateMode="Always">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnTextChanged="DropDownList1_TextChanged">
<asp:ListItem>Data Item1 </asp:ListItem>
<asp:ListItem>Data Item2 </asp:ListItem>
<asp:ListItem>Data Item3 </asp:ListItem>
<ej:Grid ID="Grid1" runat='server'></ej:Grid>
<asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="TextChanged" />


protected void DropDownList1_TextChanged(object sender, EventArgs e)
int index = DropDownList1.SelectedIndex;  //to get the index of the dropdown control
GetData(index);  //Bind data to GridGroupingControl for the corresponding index.
private void GetData(int index)
//To allow ASP.NET to use SQL Compact Server 3.5
AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);
myConnection = new SqlCeConnection(ConnectionString);
if (index == 0)
myDataAdapter = new SqlCeDataAdapter("SELECT Top (10) [Product ID], [Product Name], [Supplier ID], [Category ID], [Quantity Per Unit], [Unit Price], [Units In Stock], [Units On Order] FROM Products", myConnection);
else if (index == 1)
myDataAdapter = new SqlCeDataAdapter("SELECT TOP (10) [Order ID], [Customer ID], [Employee ID], [Order Date], [Shipped Date], [Ship Via], [Freight], [Ship Name], [Ship Address], [Ship Country], [Ship Region], [Ship Postal Code], [Required Date] FROM Orders", myConnection);
else if (index == 2)
myDataAdapter = new SqlCeDataAdapter("SELECT TOP (10) [Employee ID], [Last Name], [First Name], City, Country, Region FROM Employees", myConnection);
myDataSet = new DataSet();
DataTable myDataTable = myDataSet.Tables[0];
//this.GridGroupingControl1.DataSource = myDataTable;
this.Grid1.DataSource = myDataTable;
catch (SqlCeException ex)
throw ex;
catch (Exception ex)
throw ex;


<script type="text/javascript">
function BeginRequestHandler(sender, args) {
$("#Grid1").ejWaitingPopup({ showOnInit: true });//for enable/show the waitingpopup visiblity on the Grid control
function EndRequestHandler(sender, args) {
$("#Grid1").ejWaitingPopup({ showOnInit: false });//for disable/hide the waitingpopup visiblity on the Grid control


2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment
Bruce Stevenson
Sep 09, 2016
Just enough of an example of how to stop the waiting popup Reply

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile