BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hello
i have grid as follow.
View:
@(Html.EJ().Grid<object>("RecentlyViewedAccounts")
.Datasource((System.Data.DataTable)ViewBag.vieweddatasource)
.AllowSorting()
.AllowResizing()
.EnableRowHover(true)
.Columns(col =>
{
col.Field("currentUserId").HeaderText("User").Add();
col.Field("AccountGroupName").HeaderText("Account Name").Add();
col.Field("VisitedDate").HeaderText("Visited Date").TextAlign(TextAlign.Center).Format("{0:MM/dd/yyyy}").Width(100).Add();
}))
@(Html.EJ().Grid<object>("FlatGrid") .Datasource((IEnumerable<object>)ViewBag.datasource) .AllowSorting() .AllowFiltering() .ClientSideEvents(eve => eve.RecordClick("recordclick")) .Columns(col => { col.Field("EmployeeID").HeaderText("Employee ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(75).Add(); col.HeaderText("Employee Image").Template(true).TemplateID("#columnTemplate").TextAlign(TextAlign.Center).Field("LastName").Width(110).Add(); col.Field("FirstName").HeaderText("First Name").Width(100).Add(); col.Field("Title").Width(120).Add(); col.Field("City").Width(100).Add(); col.Field("Country").Width(100).Add(); }) ) <script type="text/x-jsrender" id="columnTemplate"> <a rel='nofollow' href="http://www.syncfusion.com/">{{:LastName}}</a> </script>
|