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

RadTreeview crashed after BeginEdit()

2 Answers 41 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Avinash Tauro
Top achievements
Rank 1
Avinash Tauro asked on 17 Nov 2009, 08:09 PM
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;
                node.BeginEdit();
            }
        }
-----------------------------------------------------------------------------------------------------------

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.

Thanks

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 20 Nov 2009, 04:38 PM
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,
Victor
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.
0
Stefan
Telerik team
answered on 22 Mar 2011, 04:45 PM
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.

Regards,

Stefan
the Telerik team

 

Tags
Treeview
Asked by
Avinash Tauro
Top achievements
Rank 1
Answers by
Victor
Telerik team
Stefan
Telerik team
Share this question
or