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

Automatic sorting and Entity Framework

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 28 Jun 2010, 09:25 AM
In my web application I'm using Entity Framework 4 and ObjectDataSources. It seems I cannot use Grid Automatic Sorting, I get the error:

The data source 'ObjectDataSourceAaa' does not support sorting with IEnumerable data. Automatic sorting is only supported with DataView, DataTable, and DataSet.

Is there some way to do this?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 28 Jun 2010, 01:31 PM
Hello,

The behavior you are observing is not directly related to our RadGrid control. Unfortunately it is the default behavior of ObjectDataSource, which, as the exception's message shows, cannot handle sorting on IEnumerable, but only on DataView, DataTable, and DataSet. However RadGrid does provide option to work-around this limitation of ObjectDataSource control, which you can enable by setting MasterTableView's OverrideDataSourceControlSorting to true.

Greetings,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
archimede
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or