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

2 posts, 0 answers
  1. Bylar
    Bylar avatar
    8 posts
    Member since:
    Jul 2012

    Posted 10 Feb 2012 Link to this post

    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




  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
Back to Top