I'm trying to follow the demo shown here but when I run it as is I receive the following:
However, if I just select a subset and call ToList() on it, it doesn't throw the error.
Is there a new demo that shows the latest way of binding with EF? I will be using all the paging, filtering, sorting and grouping features.
Regards.
[NotSupportedException: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList().] System.Data.Entity.Infrastructure.DbQuery`1.System.ComponentModel.IListSource.GetList() +44 System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource, String dataMember) +57 System.Web.UI.WebControls.ReadOnlyDataSource.System.Web.UI.IDataSource.GetView(String viewName) +42 System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +145 System.Web.UI.WebControls.DataBoundControl.GetData() +4 Telerik.Web.UI.RadGrid.GetData() +132 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +54 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30 Telerik.Web.UI.RadGrid.DataBind() +107 Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +4252 Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +201 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Control.LoadRecursive() +145 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772However, if I just select a subset and call ToList() on it, it doesn't throw the error.
Is there a new demo that shows the latest way of binding with EF? I will be using all the paging, filtering, sorting and grouping features.
Regards.