Specified argument was out of the range of valid values

2 posts, 0 answers
  1. Rob Teegarden
    Rob Teegarden avatar
    25 posts
    Member since:
    Feb 2008

    Posted 10 Mar 2008 Link to this post


    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

  2. Rob Teegarden
    Rob Teegarden avatar
    25 posts
    Member since:
    Feb 2008

    Posted 13 Mar 2008 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top