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

[Solved] Error when dragging column to grouping bar

1 Answer 64 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.
Cyndie
Top achievements
Rank 1
Cyndie asked on 24 Sep 2010, 03:33 PM
I have the following grid:
<% Html.Telerik().Grid<SCADAArchives.Models.Analog.ScalcEntry>()
    .Name("AmpsGrid")
    .BindTo((IEnumerable<SCADAArchives.Models.Analog.ScalcEntry>)ViewData["AmpsGrid"])
    .Columns(columns =>
        {
            columns.Bound(o => o.Substn).Template(o => { %> <%= o.Substn%>.<%= o.Devtyp%>.<%= o.Device%>.<%= o.Analog%> <%  });
            columns.Bound(o => o.TimeEnd).Title("Time Ending");
            columns.Bound(o => o.AvgVal).Format("{0:F2}").Title("Average");
            columns.Bound(o => o.TimeMin).Format("{0:t}").Title("Min Time");
            columns.Bound(o => o.MinVal).Format("{0:F2}").Title("Min");
            columns.Bound(o => o.TimeMax).Format("{0:t}").Title("Max Time");
            columns.Bound(o => o.MaxVal).Format("{0:F2}").Title("Max");
            columns.Bound(o => o.SnapVal).Format("{0:F2}").Title("Snap Shot");
            columns.Bound(o => o.TimeMax).Format("{0:t}").Title("Max Time");
            columns.Bound(o => o.Samples).Template(o => { %> <%= o.Samples%>% <%  }).Title("Sampled");
            columns.Bound(o => o.Suspect).Template(o => { %> <%= o.Suspect%>% <%  }).Title("Suspect");
            columns.Bound(o => o.Replaced).Template(o => { %> <%= o.Replaced%>% <%  }).Title("Replaced");
            columns.Bound(o => o.Old).Template(o => { %> <%= o.Old%>% <%  }).Title("Old");
         })
     .Groupable(grouping => grouping
         .Groups(groups =>
         {
             groups.Add(c => c.Substn);
             groups.Add(c => c.Devtyp);
             groups.Add(c => c.Device);
             groups.Add(c => c.Analog);
         })
         )
     .Render();                                   

It renders correctly and if I removed any of the groups from the grouping bar, it works as expected.  If, however, I drag a column to the grouping bar, I get an error on line 136 of telerik.common.js (2010.2.825).  See the attached image.  If I click Ignore in the debugger, it will correctly add the dragged column and grouping.  My grid is in a panel bar if that has any relevance.

Thanks for any help on this.


1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Sep 2010, 03:39 PM
Hello Cyndie,

 This error occurs if paging is disabled during server binding. It is a known bug and is already fixed. You can either enable paging or download the latest internal build.

Best wishes,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Cyndie
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or