RadTreeview crashed after BeginEdit()

3 posts, 0 answers
  1. Avinash Tauro
    Avinash Tauro avatar
    7 posts
    Member since:
    Oct 2009

    Posted 17 Nov 2009 Link to this post

    I am using a radtreeview bound to a dataset having multiple levels of hierarchy. See attached file radtreeview.gif.

    With AllowEdit=True, I press F2, and edit the text. Then when I hit the enter or escape key, the radtreeview crashes with the an exception "Index -1 does not have a value". See attached file radtreeviewError1.gif

    I noticed that this exception is only thrown for the nodes that do not have children. For nodes having children, it works fine.

    Also I tried to programmatically edit using a context menu and context menu manager. However the same exception is thrown. My code is pasted below.
    private void radMenuItemEdit_Click(object sender, EventArgs e)
                RadTreeNode node = territoryRadTreeView.SelectedNode;

                if (node != null)
                    territoryRadTreeView.AllowEdit = true;

    The version I have is, RadControls for WinForms Q2 2009 SP1.
    I am stuck on this issue for the last 2 days and any help will be appreciated.

  2. Victor
    Victor avatar
    1358 posts

    Posted 20 Nov 2009 Link to this post

    Hello Avinash Tauro,

    Thank you for reporting this issue.

    I am afraid, however, that I could not reproduce the exception. Please provide detailed steps on what needs to be done in order to trigger the exception.
    I am looking forward to your reply.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Stefan
    Stefan avatar
    2911 posts

    Posted 22 Mar 2011 Link to this post

    Hi Avinash Tauro,

    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.


    the Telerik team


Back to Top