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

Is grouping by sub-objects possible?

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
night_dev
Top achievements
Rank 1
night_dev asked on 10 Aug 2008, 04:47 PM
Hi,
Is it possible to group by a sub-object, or at least display a sub-object in the grouping header?
I populate the grid with a list of documents, each of which has a Report object. Now I can display Report.Name as a column and I can also group by reportId, but what I'm trying to do is group by reportId and display Report.Name and Report.Date in the grouping header.

Is this possible? (I'm aware that I could accomplish this by databinding in a different way.)

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 12 Aug 2008, 09:32 AM
Hello Radu,

Yes this is possible scenario. You can setup grouping like normal column, just use dot syntax 'Report.Name'.

Please try our example in Quick Start (RadGridView -> Data Binding -> Sub-objects), after show the example run ControlSpy and enable grouping in RadGridView, then group column with sub-objects data.

All the best,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
night_dev
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or