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

RadGridView Sorting problems

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mohammad Masoud
Top achievements
Rank 1
Mohammad Masoud asked on 06 Jun 2010, 09:33 AM
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::

           
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; 
        } 

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 07 Jun 2010, 08:14 AM
Hello Mohammad Masoud,

It is working as expected in our RIA Services online demo. Can you check it?

Best wishes,
Veskoni
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
GridView
Asked by
Mohammad Masoud
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or