I am trying to maintain a fixed width for each column in my MVC grid, even if the data inside the cell is not fully displayable. It appears to default to the length of the maximum data in the cell or in the header -- regardless of the width value I put in. I can put in a width of 1 and it is still using the default width. How can I override this?
The templates work. The Filterable works. The Sortable works.
@{Html.Telerik().Grid(Model)
.Name("Grid")
.DataKeys(keys=> {keys.Add(c=>c.ApplicationId);
})
.Columns(columns =>
{
columns.Template(o =>
@Html.ActionLink("Edit", "NotIndex", new { id = o.ApplicationId, area = "Processing", controller = "AppProcessing" })
).Title("Edit");
columns.Bound(o => o.AccountNumber).Title("Acct #").Width("5");
columns.Bound(o => o.ApplicationId).Title("AppId").Width(5);
columns.Bound(o => o.LastName).Title("Name").Width(10);
columns.Bound(o => o.StartDate).Title("Date").Width(10).Format("{0:MM/dd/yyyy}");
columns.Bound(o => o.BranchOrDepartment).Title("Branch").Width(10);
columns.Bound(o => o.Owner).Width(15);
columns.Bound(o => o.Queue).Width(10);
columns.Bound(o => o.Processor).Title("Proc").Width(10);
columns.Bound(o => o.Decisioning).Title("Decision").Width(10);
columns.Bound(o => o.Status).Width(10);
}).Sortable()
.Filterable()
.Render()
;
}
@Html.Telerik().ScriptRegistrar()
@Html.Telerik().StyleSheetRegistrar().DefaultGroup(group=>group.Add("telerik.common.css")
.Add("telerik.windows7.css"))
