<link rel='nofollow' href="Content/ej/web/default-theme/ej.web.all.min.css" rel="stylesheet" />
<asp:UpdatePanel ID="udp2" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<ej:WaitingPopup ID="target" Target ="#Chart1" ClientIDMode="Static" runat="server" ShowOnInit="false"></ej:WaitingPopup>
<ej:Chart ID="Chart1" OnClientLoad="chartLoad" OnChartLoaded="chartLoaded" ClientIDMode="Static" runat="server">
//…
</ej:Chart>
</ContentTemplate>
</asp:UpdatePanel>
<script>
function chartLoad() {
var popup = $("#<%=target.ClientID%>").data("ejWaitingPopup");
popup.show();
}
function chartLoaded() {
var popup = $("#<%=target.ClientID%>").data("ejWaitingPopup");
setTimeout(function () { popup.hide() }, 300);
}
</script> |