BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@Html.EJ().Button("buttonnormal").Text("Refresh").Size(ButtonSize.Normal).ClientSideEvents(e => e.Click("click"))
<div>
@Html.Partial("Grid")
</div>
<script>
function click() {
var obj = $("#FlatGrid").data("ejGrid");
$.ajax({
url: '@Url.Action("DataSource", "Home")',
type: "get",
}).done(function (data) {
obj.dataSource(data);
}).fail(function () {
alert('error');
});
}
</script>
---------------------------------------------------------
<div class="row">
<div class="col-md-12">
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.IsResponsive()
.AllowSelection(false)
.EnableAltRow(true)
.AllowPaging()
.Columns(col =>
{
-------------------------
})
)
</div>
</div>
|
$.ajax({
cache : false,
----------------------------------
}); |