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

[Solved] grouping render error

1 Answer 66 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.
Robbie Hughes
Top achievements
Rank 1
Robbie Hughes asked on 27 Sep 2010, 03:52 PM
Hi,

I'm just trying the grid grouping feature. When I drag a column the render doesn't work fine! Have you got any ideas? It doesn't seem to be grouping at all as well.

<%= Html.Telerik().Grid<IJournalItem>()
                .Name("CaseJournal")
                .EnableCustomBinding(true)
                .Columns(columns =>
                {
                     
                    columns.Bound(o => o.DateCreated).Format("{0:MM/dd/yyyy}").Title("Date Created");
                    columns.Bound(o => o.GetItemSummary).Title("Description");
                    columns.Bound(o => o.GetItemType).Title("Type");
                    columns.Bound(o => o.StringListPostedFiles).Title("Files");
                    
                })
                .Groupable(settings => settings.Groups(groups =>
                {
                     
                }))
                .DataBinding(dataBinding => dataBinding.Ajax().Select("GetJournalCaseGrid", "CaseComponent" , new { ID = ViewData["IDPatient"] , IDCase = Model.Case.ID }))
                .Scrollable(scrolling=>scrolling.Height(400))
                .Selectable()
 
 
 
        %>

this is my code.

Any ideas? Thank you very much

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 29 Sep 2010, 12:06 PM
Hello Robbie,

In order to make the grouping work with custom binding, you have to manually perform the grouping (that is what the custom binding is all about -- being custom). If you really need it, refer to the custom binding help topic (basically, you need to serialize the data in the format expected by the client-side script -- you can check our GroupBy extension). Otherwise (if you don't need custom binding), you can remove it and the grouping will work.

Greetings,
Alex Gyoshev
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
Robbie Hughes
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or