BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
@(Html.EJ().Grid<Sample118577.OrdersView>("FlatGrid")
.Datasource(Model)
----------------------------------------
.Columns(col =>
{
-------------------------
})
.ClientSideEvents(eve => { eve.ActionBegin("begin"); })
)
@(Html.EJ().Dialog("ErrorList").ShowOnInit(false).Title("Error List").ContentTemplate(@<div>
<table>
<tr>
<td>
<p>Would you like to stay on this page?<p>
</td>
</tr>
<tr>
<td>
<input type="button" value="Stay on Page" onclick="Stay()" />
</td>
<td>
<input type="button" value="Leave Page" onclick="Leave()" />
</td>
</tr>
</table>
</div>))
<script type="text/javascript">
var page, flag = true;
function begin(args) {
page = args.currentPage;
if (args.requestType == "paging" && flag) {
if (this.model.isEdit) {
args.cancel = true;
$("#ErrorList").ejDialog("open");
}
}
}
---------------------------------
</script> |