This is a migrated thread and some comments may be shown as answers.

Grouping loses column sizes

4 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bob
Top achievements
Rank 1
Bob asked on 20 Aug 2010, 03:51 PM
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:

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

4 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 1
answered on 06 Oct 2010, 10:43 PM
The problem is solved in Q2 2010 SP1 (2010.2.930)!

Hooray! and thanks to a very fine technical staff!!!

Bob
0
Andre
Top achievements
Rank 1
answered on 12 Nov 2010, 07:35 PM

Hi,

How did you end up solving this issue?

0
Bob
Top achievements
Rank 1
answered on 12 Nov 2010, 07:39 PM
I simply upgraded to the latest Telerik release. It worked on Q2 2010 SP1 (2010.2.930) and it still works on Q3 2010 (2010.3.1110).

I hope this helps.

Bob
0
Andre
Top achievements
Rank 1
answered on 12 Nov 2010, 07:47 PM
Thanks!
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Bob
Top achievements
Rank 1
Andre
Top achievements
Rank 1
Share this question
or