Treeview for Winform throws System.StackOverflowException

3 posts, 1 answers
  1. Mike
    Mike avatar
    76 posts
    Member since:
    Nov 2004

    Posted 27 Mar 2008 Link to this post

    I have a treeview that is blowing up on loading in data. Here is what is happening.

    dsVariables = GetDocVariables()


    RadTreeView2.ParentIDMember =


    RadTreeView2.ValueMember =


    RadTreeView2.DisplayMember =


    RadTreeView2.DataSource = dsVariables.Tables(0)

    Here is the data:

    ParentID HierarchicalID  VariableText
    0  0   TEST
    0  600   ONE
    600  601   TWO

    Why is the treeview throwing an error??????

  2. Answer
    Jordan avatar
    547 posts

    Posted 28 Mar 2008 Link to this post

    Hello mike scardina,

    There was an issue in the RadTreeView data binding functionality, that caused recursion in the tree view structure in your particular scenario. This issue is now addressed and will not appear in 2008 Q1 release.

    For the time being, you can easily workaround this issue by setting the ParentID value for the root node to -1 instead of 0.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Stefan
    Stefan avatar
    2906 posts

    Posted 22 Mar 2011 Link to this post

    Hello Mike,

    Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post.
    Best wishes,
    the Telerik team
Back to Top