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

[Solved] Self Referencing Heirarchy and Grouping

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 13 May 2008, 08:07 AM
Is there an example available on how to use grouping with Self Referencing Heirarchy.

I have a grid which uses Self referencing Heirarchy which is pretty much identical to the example in the documentation. I have tried to group by a field in the grid which is not a KeyName.

For example: Fields
ItemId | ParentId | Name | Company

I have the self referncing heirarchy using ItemId and ParentId which works no problem. Once I add Grouping by Company, the grouping appears to work but is recursive.

Any assistance would be much appreciated.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 16 May 2008, 08:39 AM
Hi John,

Do you mean you need grouping on the master table only? Since one and the same table is referred it is expected to get grouping on each table. You can however hook the DetailTableDataBind event and clear the GroupByExpressions for the detail tables.

Please, find attached an example and let us know if that helps.

Best wishes,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or