@using Infragistics.Web.Mvc @using GridReRender.Models @model IQueryable @{ ViewData["Title"] = "Home Page"; } @* *@

Simple Sidebar

@(Html.Infragistics() .Grid(Model) .ID("grid") .Width("100%") .Height("800px") .PrimaryKey("ClientId") .Caption("Clients") .AutoGenerateColumns(false) .AutoGenerateLayouts(false) .Columns(column => { column.For(x => x.ClientId).HeaderText("Client Id").Width("*"); column.For(x => x.Name).HeaderText("Client Name").Width("*"); column.For(x => x.City).HeaderText("City").Width("*"); column.For(x => x.State).HeaderText("State").Width("*"); column.For(x => x.EntryPoint).HeaderText("Entry Point").Width("*"); column.Unbound("PortalUrl").Template("Preview").HeaderText("Preview").Width("*"); column.Unbound("Details").Template("Details").HeaderText("Details").Width("*"); column.Unbound("CustomerLookup").Template("Customers").HeaderText("Customers").Width("*"); column.Unbound("Import").Template("Import").HeaderText("Import").Width("*"); column.Unbound("Messages").Template("Messages").HeaderText("Messages").Width("*"); column.Unbound("Reports").Template("Reports").HeaderText("Reports").Width("*"); column.Unbound("Users").Template("Users").HeaderText("Users").Width("*"); }) .Features(features => { features.Sorting().Type(OpType.Local).ColumnSettings(setting => { setting.ColumnSetting().ColumnKey("Details").AllowSorting(false); setting.ColumnSetting().ColumnKey("CustomerLookup").AllowSorting(false); setting.ColumnSetting().ColumnKey("Import").AllowSorting(false); setting.ColumnSetting().ColumnKey("Messages").AllowSorting(false); setting.ColumnSetting().ColumnKey("Reports").AllowSorting(false); setting.ColumnSetting().ColumnKey("Users").AllowSorting(false); setting.ColumnSetting().ColumnKey("PortalUrl").AllowSorting(false); }); features.Paging().Type(OpType.Local); features.Filtering().Type(OpType.Local).ColumnSettings(setting => { setting.ColumnSetting().ColumnKey("Details").AllowFiltering(false); setting.ColumnSetting().ColumnKey("CustomerLookup").AllowFiltering(false); setting.ColumnSetting().ColumnKey("Import").AllowFiltering(false); setting.ColumnSetting().ColumnKey("Messages").AllowFiltering(false); setting.ColumnSetting().ColumnKey("Reports").AllowFiltering(false); setting.ColumnSetting().ColumnKey("Users").AllowFiltering(false); setting.ColumnSetting().ColumnKey("PortalUrl").AllowFiltering(false); }); }) .DataBind() .AutofitLastColumn(true) .Render() )