<div id = "ControlRegion">
<asp:Button ID="ShowButton" runat="server" Text="Show" OnClientClick="showButtonOnClientClick()"/>
<div>
<ej:WaitingPopup ID="MyWaitingPopup" runat="server" ShowOnInit="true">
</ej:WaitingPopup>
<ej:DropDownList ID="optValueChange" WatermarkText="Select" ClientSideOnChange="onActiveValueChange" runat="server" Width="107px" ToolTip="select..">
<Items>
<ej:DropDownListItem Text="cssChange" Value="cssChange" />
<ej:DropDownListItem Text="transparent" Value="transparent" />
<ej:DropDownListItem Text="UrlChange" Value="UrlChange" />
</Items>
</ej:DropDownList>
<ej:DatePicker ID="DatePicker1" runat="server" ></ej:DatePicker>
<style type="text/css">
#<%=MyWaitingPopup.ClientID%> {
height: 320px;
width: 600px;
margin: 0 auto;
}
#<%=MyWaitingPopup.ClientID%>_WaitingPopup .e-image {
display: block;
}
.UrlChange .e-image {
width:30px;
height:30px;
background:url("http://i.stack.imgur.com/FhHRx.gif");
}
.transparent .e-image {
background-color:transparent;
}
.cssChange .e-image{
height:100px;
background-color:red;
}
</style>
</div>
<script>
function showButtonOnClientClick()
{
popUpObj = $("#<%=MyWaitingPopup.ClientID%>").data("ejWaitingPopup");
popUpObj.setModel({ cssClass: 'cssChange' });
popUpObj.show();
}
function onActiveValueChange(args) {
obj = $("#<%=MyWaitingPopup.ClientID%>").data("ejWaitingPopup");
obj.setModel({ cssClass: this.getValue() });
}
</script>
</div> |
Thanks