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

[Solved] RadDataGrid: One item in multiple groups

2 Answers 120 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernhard König
Top achievements
Rank 2
Bernhard König asked on 01 Jan 2014, 08:21 PM

Hi,

I like the DataGrid very much. There seems to be just one feature I'm missing: I'd like to have a single row (item) appear in multiple grouped areas.

The concrete scenario I have is: my items have a tag property and each item can have multiple tags (IEnumerable<Tag>). So if I want to group the items by their tags, one item will have to appear in none, one or even more than one group.

Even when using the delegate group descriptor functionality, I can only have a single group key for each item. Is there a way to do this or else may I suggest to add a feature like that? That would be very helpful.

I'm able to work around this for now by virtualizing/duplicating the items based on their amount of tags in the background by myself, but of course this is not a very good solution.

Thanks very much,

Bernhard



2 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 03 Jan 2014, 09:45 AM

Hello Bernhard,

Thank you for using RadControls for Windows 8!

Unfortunately, the RadDataGrid does not support such grouping by design - one element always belongs to a single group. Your solution may work, but you have to be careful to have distinct copies of the data items in the ItemsSource, so that the editing, selection and currency work properly. I have logged this feature in our ideas & feedback portal where you and our community can vote for it and raise its priority.

Please, feel free to contact us if you have any other questions or ideas.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Bernhard König
Top achievements
Rank 2
answered on 04 Jan 2014, 01:30 PM

Hi Rositsa,


thanks for your reply! Such a feature would be great.

I have distinct instances of these objects and I have no editing enabled, so this should work as a workaround.

Thanks,

Bernhard

Tags
Grid for XAML
Asked by
Bernhard König
Top achievements
Rank 2
Answers by
Rosy Topchiyska
Telerik team
Bernhard König
Top achievements
Rank 2
Share this question
or