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

RadGridView- Asynchronous DataLoadMode doesn't refresh grid

1 Answer 295 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Noam
Top achievements
Rank 1
Noam asked on 11 Aug 2009, 09:36 AM
Hi,
I have a GridView with binding to an ObservableCollection in the ViewModel.
The GridView DataLoadMode is set to Asynchronous.
When removing an item from the ObservableCollection in the ViewModel, the GridView is not refershed and item is still shown.
If I set DataLoadMode as synchronous , It works fine.

<telerik:RadGridView  
  x:Name="RadGridViewGroups" 
  Grid.Row="1" 
  AutoGenerateColumns="False" 
  DataLoadMode="Asynchronous" 
  IsReadOnly="True"           
  ItemsSource="{Binding Groups}" > 

public class GroupsViewModel : INotifyPropertyChanged  
{         
    public ObservableCollection<TradingGroup> Groups  
    {  
        get 
        {  
            return m_Groups;  
        }  
        set 
        {  
            m_Groups = value;  
            PropertyChanged.OnPropertyChanged(this"Groups");  
        }  
    }  


Thanks,
Noam Shoeg



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Aug 2009, 09:28 AM
Hi Noam,

I tried to replicate this however everything worked fine on my end - you can find an example project attached.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Noam
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or