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

Value does not fall within the expected range

1 Answer 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 10 Jan 2010, 12:23 AM
Hi..
I'm trying to add child nodes programmatically - but get the following error.... on the second 'add'

Value does not fall within the expected range

What's wrong with this... I have a parent Inbox

 

// Add Custom Nodes

 

 

this.InBox.Items.Add(inNode_SUB1);

 

 

this.InBox.Items.Add(inNode_SUB2);

 


thanks!

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 11 Jan 2010, 09:09 AM
Hi Jon The Nerd,

This is quite unexpected for this simple scenario.

Normally this error comes up when something that exists in the visual tree is added to it again.

Could you send us the stack trace at the moment of the exception?

I tried to reproduce this problem but I could not, quite possibly I am missing something. I have attached the project I used to do this. Can you help us reproduce the error?

Greetings,
Miroslav
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.
Tags
TreeView
Asked by
Jon
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or