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

Self-referencing hierarchy RadGridView : Repeated record issue....

1 Answer 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bylar
Top achievements
Rank 1
Bylar asked on 10 Feb 2012, 08:51 AM
Hi,

I have a RadGridView where I am using Self-referencing feature to create n-level hierarchy. I am facing the issue where the records are getting Repeated. For example, I want to show the following hierarchy.
Parent1
    Child1.1
    Child1.2
        Child1.2.1
        Child1.2.2
Parent2
    Child2.1
    Child2.2
etc.....
But when i bind the RadGridView the records are getting Repeated in child level as well as in parent level like-
Parent1
    Child1.1
    Child1.2
        Child1.2.1
        Child1.2.2
Child1.1
Child1.2
Child1.2.1
Child1.2.2
Parent2
    Child2.1
    Child2.2
Child2.1
Child2.2

Please see  the attacheed file.

I appreciate any help or suggestions on this.

Thanks,
M. Anderson




1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 10 Feb 2012, 11:04 AM
Hi M. Anderson,

You can easily prevent such rows(with ParentID != 0) from appearing on the root level by creating a filter descriptor which would only allow rows with ParentID equal to 0.

You may refer to this forum thread on the same topic.

Regards,
Didie
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Bylar
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or