Articles in this section
Category / Section

How to show the WaitingPopup control?

1 min read

Description

You can control the visibility of the WaitingPopup using its clientside API’s - ShowPopup(), HidePopup().

Solution

API’s Details:

Method

Return Type

Description

ShowPopup()

     void

It shows/enables the visibility of the WaitingPopup control.

HidePopup()

     void

It hides/disables the visibility of the WaitingPopup control.




To Show/Hide the WaitingPopup control, call the ShowPopup/ HidePopup API accordingly.

Refer to the following code example.

ASPX               

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<syncfusion:GridGroupingControl ID="GridGroupingControl1" ShowWaitingPopupOnPostBack="true" runat="server" AjaxAutoformat="Midnight" EnableCallbacks="false" ShowGroupDropArea="false" EnableAjaxMode="true" EnableAjaxPaging="false">
<TableDescriptor AllowFilter="false"></TableDescriptor><TableOptions AllowSortColumns="false" />
</syncfusion:GridGroupingControl>
<asp:Button ID="action" runat="server" Text="MakePopup" OnClientClick="clickIt();return false;" />
<syncfusion:WaitingPopup DisableOnShowElementID="GridGroupingControl1" ID="WaitingPopup1"
 ClientObjectId="Popup" runat="server" Alignment="MiddleCentre" AutoFormat="Rollers"
  Height="50px" Width="125px" DisabledBackgroundColor="221, 227, 238">
 </syncfusion:WaitingPopup>

CS               

        protected void Page_Load(object sender, EventArgs e)
        {
            AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);
            try
            {
                SqlCeConnection myConnection = new SqlCeConnection(@"Data Source=|DataDirectory|\Northwind.sdf");
                SqlCeDataAdapter 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);
                DataSet myDataSet = new DataSet();
                myDataAdapter.Fill(myDataSet);
                DataTable myDataTable = myDataSet.Tables[0];
                this.GridGroupingControl1.DataSource = myDataTable;
            }
            catch (SqlCeException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

JS                

// Popup is a ClientObjectId for the WaitingPopup control- it is used to access the client side API
<script>
 function clickIt()
 {
     if(Popup.IsShown())
         Popup.HidePopup();
     else
         Popup.ShowPopup(); 
  }
</script>


Note

A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied