BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<div>
@Html.EJS().Grid("Grid").DataSource((IEnumerable<object>)ViewBag.dataSource).Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).Width("120").Add();
col.Field("CustomerID").HeaderText("Customer Name").Width("150").Add();
}).AllowPaging().Toolbar(new List<string>() { "Search" }).Created("search").Render()
</div>
<script>
function search() {
// Grid - > id of the Grid component you can set based on you requirement
document.getElementById("Grid_searchbar").addEventListener('keyup', function (event) {
var value = event.target.value;
gridObj = document.getElementById('Grid').ej2_instances[0];
gridObj.search(value)
})
}
</script> |