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

Getting "Specified argument was out of the range of valid values." error in hierarchical radgrid while trying to refresh data

1 Answer 199 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 17 Feb 2015, 06:27 PM
Hi,

I am trying to implement hierarchical grid. I am trying to refresh data in hierarchical RadGrid.  RadGrid is working fine when all rows are in collapsed mode.  Where as I am getting "Specified argument was out of the range of valid values." when the one or more nested tables are in expanded mode.
I am getting this error even before Page_Load event is fired.  What could be the possible reasons.

Thanks in advance,
Gafoor.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Feb 2015, 10:23 AM
Hi Gafoor,

Can you please verify that you are not using DataBind() to bind the grid? Please note that performing complex grid operations such as Inserting, Deleting, Updating, Hierarchy relations, Grouping, Exporting, Paging, Sorting, Filtering, etc. require accommodating appropriate database operations.  Therefore, we suggest you to avoid Simple Databinding and strongly recommend the use of more advanced databinding methods, which automatically handle the aforementioned functions:
Declarative DataSource
Advanced Data Binding


Here is a live demonstration for declarative binding of a hierarchy:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/insert-update-delete-hierarchy/defaultcs.aspx
And also programmatic:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/programmatic-hierarchy/defaultcs.aspx


I hope these live samples will prove helpful.

Regards,
Eyup
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
Dev
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or