BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@buttons
<button onclick="disable()">Disable</button>
<button onclick="enable()">Enable</button>
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowPaging()
.Columns(col =>
{
. . .
})
)
@CSS
<style>
.disabled {
opacity: .5;
pointer-events: none;
}
</style>
@button click events
<script type="text/javascript">
function disable() {
$("#FlatGrid").addClass("disabled"); //disable the Grid control
}
function enable() {
$("#FlatGrid").removeClass("disabled"); //enable the Grid control
}
</script> |
@buttons
<button onclick="disable()">Disable</button>
<button onclick="enable()">Enable</button>
@CSS
<style>
.disabled {
opacity: .5;
pointer-events: none;
}
</style>
@button click events
<script type="text/javascript">
function disable() {
$(".e-grid ").addClass("disabled"); //disable the Grid control
}
function enable() {
$(".e-grid").removeClass("disabled"); //enable the Grid control
}
</script> |