Automatic sorting and Entity Framework

2 posts, 0 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 28 Jun 2010 Link to this post

    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?
  2. Rosen
    Admin
    Rosen avatar
    3237 posts

    Posted 28 Jun 2010 Link to this post

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