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

Specified argument was out of the range of valid values

1 Answer 93 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rob Teegarden
Top achievements
Rank 1
Rob Teegarden asked on 11 Mar 2008, 12:09 AM

Hello,

I just upgraded my treeview control to Prometheus and I am having an issue with the TreeNodeExpandMode.ServerSideCallBack.  My tree is populated from and XML document and can be rather large, so I have server side expand on.  I fixed all the other small things to make it work with the new control, but this one I can't seem to fix.

The first node I click on to expand, it works just fine on the server side expand all sub nodes and items show up.  But then I click on another node to expand - either below the node just opened or off the root node and I get that message box with the text below.  I did some debugging and it is posting back because the Page Load event is being called, but the error just pops up before the NodeExpand event is called.

Any help would be appreciated.

Specified argument was out of the range of valid values. Parameter name: Cannot find item with hierarchical index

1 Answer, 1 is accepted

Sort by
0
Rob Teegarden
Top achievements
Rank 1
answered on 13 Mar 2008, 04:17 PM
OK, after some serious troubleshooting I figured out that it was because:

enableViewState="False" 

As soon as I removed that it was working just fine!
Tags
TreeView
Asked by
Rob Teegarden
Top achievements
Rank 1
Answers by
Rob Teegarden
Top achievements
Rank 1
Share this question
or