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

Specified argument was out of the range of valid values. Parameter name: ItemHierarchicalIndex

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rahel
Top achievements
Rank 1
rahel asked on 14 Aug 2014, 10:35 AM
Hi

I'm using Radgrid to build a tree structure with source of objects with parent and child relationship.
I'm also have a ddl in my page.
Each time I change my selection in the ddl I need to load differnet data to my radgrid.
The problem is the when I change the ddl and one of the node is expanded to more that 1 level I got error:

Specified argument was out of the range of valid values.
Parameter
name: ItemHierarchicalIndex Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex

Source
Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

I guess the problem is- the grid is trying to restore the expanded items on the new data source (which has been changed and the expanded levels in client data may not be valid anymore).

Can u help me with solution?
thanks




1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 19 Aug 2014, 05:57 AM
Hello,

If I am correct you are trying to create a self-referencing hierarchy. If that is the case I would recommend replacing the RadGrid control with our RadTreeList which is more suitable for this purpose.

If the hierarchy type differs from the above mentioned I would kindly like to ask you to share with us the markup and code-behind of the page so we could examine the implementation and research what might be causing the described behavior.

Regards,
Angel Petrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
rahel
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or