This question is locked. New answers and comments are not allowed.
I just noticed that when I group by a column, the MVC grid loses its column sizes. For an example, please see http://www.pdc.wa.gov/MvcQuerySystem/Candidate/sw_candidates. The grid's definition is below:
How can I maintain the column sizes despite grouping?
Thanks,
Bob
Html.Telerik().Grid<MvcQuerySystem.Models.can_sw_model>(Model.model) .Name("grid1") .DataBinding(d => d.Ajax().Select("ajax_sw_candidates", "Candidate")) .Columns(c => { c.Bound(o => o.detailsLink).Format(Html.ActionLink("Details", "contributions", "CandidateData", new { param = "{0}", year = Model.value, type = "statewide" }, null).ToString()) .Encoded(false).Title("Details").Width(30).Groupable(false).Filterable(false).Sortable(false); c.Bound(o => o.name).Title("Name").Width(250).Groupable(false); c.Bound(o => o.office).Title("Office").Width(300); c.Bound(o => o.party).Title("Pty").Width(20); c.Bound(o => o.raised).HtmlAttributes(new { @style = "text-align:right" }) .Format("{0:C}").Title("Raised").Width(120).Groupable(false); c.Bound(o => o.spent).HtmlAttributes(new { @style = "text-align:right" }) .Format("{0:C}").Title("Spent").Width(120).Groupable(false); c.Bound(o => o.debt).HtmlAttributes(new { @style = "text-align:right" }) .Format("{0:C}").Title("Debt").Width(120).Groupable(false); c.Bound(o => o.ind_supporting).HtmlAttributes(new { @style = "text-align:right" }) .Format("{0:C}").Title("Ind Sup").Width(120).Groupable(false); c.Bound(o => o.ind_opposing).HtmlAttributes(new { @style = "text-align:right" }) .Format("{0:C}").Title("Ind Opp").Width(120).Groupable(false); }) .PrefixUrlParameters(false) .Pageable(p => p.PageSize(15) .Style(GridPagerStyles.NextPreviousAndNumeric) .Position(GridPagerPosition.Bottom)) .Sortable() .Filterable() .Groupable() .Render(); How can I maintain the column sizes despite grouping?
Thanks,
Bob