@Html.EJ().ScriptManager()
|
<div id="ControlRegion">
@Html.EJ().Accordion("template").Items(data => data.Add().Text("First").ContentTemplate(@<div class="col-md-3">
@(Html.EJ().Button("ClearFilter")
.Width("200px")
.Text("Clear Filter")
.ShowRoundedCorner(true)
.Size(ButtonSize.Large)
.ClientSideEvents(eve => { eve.Click("clearfilter"); })
)
</div>))
<div class="controlframe">
<div id="target"></div>
@Html.EJ().WaitingPopup("target").ShowOnInit(false)
</div>
</div>
<script>
function clearfilter() {
var popupObj = $("#target").data("ejWaitingPopup");
popupObj.show();
// Data processing
setTimeout(function () {
alert("data processed");
popupObj.hide();
}, 100)
}
</script>
|