This question is locked. New answers and comments are not allowed.
hi ,
im using a RadGridView with a silverlight datapager using domain data source
and it worked but when i attempt to sort this error appears :
((cannot change observablecollection during a collectionchanged or a property changed event))
any ideas??
thank you all.
this is the code::
im using a RadGridView with a silverlight datapager using domain data source
and it worked but when i attempt to sort this error appears :
((cannot change observablecollection during a collectionchanged or a property changed event))
any ideas??
thank you all.
this is the code::
| DomainContext context = new DomainContext(); |
| datasource.QueryParameters.Clear(); |
| datasource.QueryName = "GetEntities"; |
| datasource.QueryParameters.Add(new Parameter() { ParameterName = "direction", Value = _direction }); |
| if (datasource.DomainContext == null) |
| { |
| datasource.DomainContext = context; |
| } |
| datasource.PageSize = 10; |
| datasource.LoadSize = 10; |
| datasource.AutoLoad = true; |
| datasource.Load(); |
| datasource.LoadedData += new EventHandler<LoadedDataEventArgs>(datasource_LoadedData); |
| void datasource_LoadedData(object sender, LoadedDataEventArgs e) |
| { |
| DataGrid.ItemsSource = null; |
| Pager.Source = null; |
| DataGrid.ItemsSource =datasource.Data; |
| Pager.Source = datasource.Data; |
| } |