Behavior and Settings
28 Jun 20173 minutes to read
Automatic Initializing WaitingPopup widget
WaitingPopup widget contains showOnInit property that allows the popup to display over a target on page load automatically. By default, showOnInit property is set as false.
The following steps explains you on how to display the WaitingPopup on page load.
In an HTML page, add a <div> element to render WaitingPopup widget.
<div class="control">
<div id="waitingPopUp" ej-waitingpopup e-showoninit="true"></div>
</div>
Add the following styles to render WaitingPopup widget.
<style type="text/css" class="cssStyles">
#waitingPopUp {
height: 320px;
width: 600px;
}
</style>
The following screenshot illustrates the WaitingPopup when showOnInit is set to “true”.
Enable / Disable Popup Indicator
You can show or hide the popup indicator of WaitingPopup widget using showImage property. By default, showImage property is set as true.
The following steps explains you to enable / disable popup indicator in WaitingPopup widget.
In the HTML page, add a <div> element to render WaitingPopup widget.
// To configure Enable / Disable popup indicator in WaitingPopup, use the following code.
//Enable popup indicator:
<div class="control">
<div id="waitingPopUp" ej-waitingpopup e-showoninit="true" e-showimage="true" e-text="Loading... Please wait..."></div>
</div>
//Disable popup indicator:
<div class="control">
<div id="waitingPopUp" ej-waitingpopup e-showoninit="true" e-showimage="false" e-text="Loading... Please wait..."></div>
</div>
Add the following styles to render WaitingPopup widget.
<style type="text/css" class="cssStyles">
#waitingPopUp {
height: 320px;
width: 600px;
}
</style>
Execute the above code to render the following output.
Show / Hide WaitingPopup
Using show() and hide() methods, you can display or hide the WaitingPopup widget over the target area.
The following steps explains you to show / hide the WaitingPopup widget.
In the HTML page, add a <div> element to render WaitingPopup widget.
<div class="control">
<div id="waitingPopUp" ej-waitingpopup></div>
</div>
//Create an instance from an existing WaitingPopup.
// only after control creation we can get waitingPopupObj otherwise it throws exception.
var waitingPopupObj = $("#waitingPopUp").data("ejWaitingPopup");
//Show WaitingPopup
waitingPopupObj.show();
//Hide WaitingPopup
waitingPopupObj.hide();
Add the following styles to render WaitingPopup widget.
<style type="text/css" class="cssStyles">
#waitingPopUp {
height: 320px;
width: 600px;
}
</style>
The following screenshot illustrates a WaitingPopup when show() method is invoked.