- Home
- Forum
- ASP.NET MVC
- WaitingPopup never shows when data is loading...
WaitingPopup never shows when data is loading...
Thanks for contacting the Syncfusion support.
By default, the waiting popup will display when binding the remote DataSource in the Grid Ex: (ds=> ds.URL(“/Grid/Data”)). It doesn’t display while binding the local DataSource. If we bind the local IEnumerable data to Grid through button click and want to show the waiting popup, you have use show method to display waiting popup in Grid before binding the data and use hide method to hide waiting popup in success event.
Refer to the sample and code example as below.
Sample: Sample-Partialview
|
<script type="text/javascript">
$(function () { $("#btn").ejButton({ text: "Button", click: function (args) { $("#FlatGrid").ejWaitingPopup("show"); //you can show the waiting popup- before bind the data to grid
$.ajax({ url: "/Grid/Edit", type: "GET", success: function (data) { $("#FlatGrid").ejGrid("model.dataSource", data.Items); $("#FlatGrid").ejWaitingPopup("hide"); //hide waiting popup – after bind the data to Grid }, error: function (xhr) { alert('error'); } });
} }) }) |
Refer to the Help Documents:
http://help.syncfusion.com/js/api/ejwaitingpopup#methods:hide
http://help.syncfusion.com/js/api/ejwaitingpopup#methods:show
If you face any issue, kindly share the full sample with how do you bind the dataSource to Grid or modify the sample as issue reproducible.
Regards,
Balaji Marimuthu
Thanks for the update.
We are happy that the provided solution helped you. Please get back to us if you need any further assistance.
Regards,
Balaji Marimuthu
- 3 Replies
- 2 Participants
-
CT Corey Thompson
- Feb 8, 2016 07:40 PM UTC
- Feb 10, 2016 05:31 AM UTC