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

Self Referencing Hierarchy Grid binding with Sub Objects

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aayam
Top achievements
Rank 1
Aayam asked on 06 Aug 2010, 05:07 AM
Hi Experts,

Scenario:
1) Create Self Referencing Hierarchy Grid using Sub Objects.
2) Structure of SubObjects
        ParentObject
                ChildDetailsObject
                RelationObject

        ChildDetailsObject    
                Name
                Details

        RelationObject
                Name
                ParentName
 3) We provide collection of ParentObject as datasource.

Clarification:
   1) Can we provide SubObjects are DataKeyNames in MasterTableView.
        ex: DataKeyNames = "ParentObject.RelationObject.Name, ParentObject.RelationObject.ParentName"
   2) Can we provide SubObjects in ParentKeyName and KeyName in SelfHierarchySettings.
        ex: ParentKeyName = "ParentObject.RelationObject.ParentName"
              KeyName = "ParentObject.RelationObject.Name"
  3) Code snippet or sample application would help to understand this better.

Regards,
Aayam Singh

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Aug 2010, 02:54 PM
Hello Aayam,

Nested properties are not supported with RadGrid self-referencing hierarchy. You can create a mapper object that will map a nested property to a first-level property in the grid. Attaching a test page that demonstrates this scenario. Note that I have defined a property ( RelationObjectParentName) that wraps the nested RelationObject.ParentName sub-property to use with the self-referencing hierarchy settings.

Regards,
Veli
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
Aayam
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or