-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.cshtml
33 lines (29 loc) · 1.08 KB
/
Index.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@{
ViewBag.Title = "How to load MVC extensions using the CallbackPanel extension";
}
<script type="text/javascript">
var showGrid = false;
function btn_OnClick(s, e) {
showGrid = true;
cbp.PerformCallback();
}
function cbp_OnBeginCallback(s, e) {
e.customArgs["ShowGrid"] = showGrid;
showGrid = false;
}
</script>
<h2>
@ViewData["Message"]</h2>
<p>
To learn more about DevExpress Extensions for ASP.NET MVC visit <a href="http://devexpress.com/Products/NET/Controls/ASP-NET-MVC/"
title="ASP.NET MVC Website">http://devexpress.com/Products/NET/Controls/ASP-NET-MVC/</a>.
</p>
<div style="border: 1px solid gray; padding: 5px; width: 200px">
@Html.Partial("CallbackPartial")
</div>
@Html.DevExpress().Button(settings => {
settings.Name = "btn";
settings.UseSubmitBehavior = false;
settings.Text = "Show grid";
settings.ClientSideEvents.Click = "btn_OnClick";
}).GetHtml()