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
close icon

How Do I grey out the web page while showing the Waiting pop-up during postback from a button click

Hi I am currently working on an Asp.Net web page where I have a grid and two buttons, when a button is clicked it updates the grid (it retrives date and binds it to the grid) What I would like is for the WaitingPopUp to appear when the button is clicked, it has to appear in the middle of the page and the rest of the page must be greyed out and the popup to be highlighted(in focus) then, when the page is finished loading the grid completly, the popup will disappear and the page will again be in focus.
Is there anyway I can achieve this?

1 Reply

ES Ezhil S Syncfusion Team March 27, 2015 02:48 PM UTC

Hi Andersen,

Thank you for contacting Syncfusion support.

The requested scenario to show and hide the WaitingPopup control on loading grid data can be achieved using show() and hide() APIs in client side scripts. Obtain the WaitingPopup control element in client side script to show the popup element on BeginRequestHandler() and hide the popup under EndRequestHandler(), which works only with <UpdatePanel>. BeginRequestHandler() is called before the post back to load data and returns to EndRequestHandler() after post back completes. Please refer the following code snippet,



<asp:UpdatePanel ID="Panel1" runat="server">


<ej:WaitingPopup runat="server" ID="waiting1" ShowImage="true" Text="Grid data loading"></ej:WaitingPopup>

<ej:Grid runat="server" ID="Grid1" AllowPaging="true">


<ej:Column Field="FirstName" HeaderText="First Name" />

<ej:Column Field="LastName" HeaderText="Last Name" />

<ej:Column Field="Email" HeaderText="Email" />



<asp:Button runat="server" ID="btn1" ClientIDMode="Static" Text="Grid data" OnClick="btn1_Click" />



<asp:AsyncPostBackTrigger ControlID="btn1" />




<script type="text/javascript">



function BeginRequestHandler() {

// to show popup on initiating postback

var popupObj = $("#<%=waiting1.ClientID%>").data("ejWaitingPopup");



function EndRequestHandler() {

// hide popup after postback

var popupObj = $("#<%=waiting1.ClientID%>").data("ejWaitingPopup");





Please download the simple sample that depicts the requested behavior from below link:


Please let us know if you have any other queries.


Ezhil S

Live Chat Icon For mobile
Up arrow icon