This question is locked. New answers and comments are not allowed.
Let me preface . Yes I can see them working on the examples. The width method is having no effect. If I enable Scrollable it does work. I do not want Scrollable though <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> |
<div class="display"> |
<% |
Response.Write(Html.Hidden("SelectedPersonId")); // value holder for other links in the master page. |
Html.Telerik().Grid<PersonSearchListModel>() |
.Name("Telerik_SearchResults") |
.Columns(columns =>{ |
columns.Bound(c => c.PersonID).Title("ID"); |
columns.Bound(c => c.FirstName).Title("First"); |
columns.Bound(c => c.MiddleName).Title("Middle"); |
columns.Bound(c => c.LastName).Title("Last"); |
columns.Bound(c => c.Phone).Title("Phone").Width(300); |
columns.Bound(c => c.Address).Title("Address"); |
columns.Bound(c => c.SSN); |
columns.Bound(c => c.HICN); |
columns.Bound(c => c.DOB).Title("Date of Birth").Format("{0:MM/dd/yyyy}"); |
columns.Bound(c => c.EnrollmentStatus); |
columns.Bound(c => c.AuthorizedRep); |
columns.Bound(c => c.AuthorizedRepPhone); |
}).ClientEvents(events => events |
.OnLoad("Telerik_SearchResults_Load") |
.OnRowSelected("Telerik_SearchResults_RowSelected") |
).BindTo(Model.SearchResults) |
.Selectable() |
//.Scrollable(sc=>sc.Height(900)) |
// .Pageable(settings => settings.PageSize(Model.ResultsPerPage)) |
.DataKeys(keys => keys.Add(my => my.PersonID)) |
// .Sortable(settings => settings.Enabled(true).SortMode(GridSortMode.SingleColumn)) |
.Render() |
; |
%> |
</div> |