The wijdialog widget allows you to create Confirm windows to confirm events like file deletion or emptying the recycle bin. See the Dialog > Confirm Dialog sample of the Control Explorer live demo at http://demo.componentone.com/ASPNET/MVCExplorer/dialog/ModalConfirmation .
<div>
<input type="button" value="Show Confirm" onclick="$('#dialog-confirm').wijdialog('open')" />
<div id="dialog-confirm" title="Empty recycle bin?">
<p>
<span class="ui-icon ui-icon-alert"></span>These items will be permanently deleted
and cannot be recovered. Are you sure?</p>
</div>
</div>
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
/$(":wijmo-wijdialog").wijdialog("destroy").remove();
$("#dialog-confirm").wijdialog({
autoOpen: true,
resizable: false,
height: 180,
width: 400,
modal: true,
buttons: {
"Delete all items": function () {
$(this).wijdialog("close");
},
Cancel: function () {
$(this).wijdialog("close");
}
}
});
});
</script>