This is a migrated thread and some comments may be shown as answers.
Relationship for a name field in self referencing grid
1 Answer 6 Views
This is a migrated thread and some comments may be shown as answers.
Krishnan LN
Top achievements
Rank 1
Krishnan LN asked on 25 Feb 2010, 07:31 AM
Hi i have the columns called ID,NAME and ParentID. The normal scenario is to group by ID field and ParentID field so that the expand/collapse button would be under the ID field.

In my Case. i have to group based on the name field. Im confused how to use relationships for name field in self referencing grid.
I mean how to relate parent and child row using the name field.

Any help is appreciated.

ZRegards,
Krishnan

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 01 Mar 2010, 01:49 PM
Hello Krishnan LN,

Try setting the Name field for both the ParentKeyName and KeyName properties in the SelfHierarchySettings. RadGrid will try to build the self-rerefencing hierarchy, looking for matching entries in the parent and detail records.

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