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

Problem with a custom collection implementing INotifyCollectionChanged

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ercument Berktas
Top achievements
Rank 1
Ercument Berktas asked on 23 Apr 2010, 01:46 PM
hi,

I have a generic collection implementing INotifyCollectionChanged with an Add method as the following:

public void Add(TEntityType item)  
        {  
            if (Criteria(item))  
            {  
                InnerList.Add(item);  
                CollectionChanged(InnerList, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item));  
                if (SelectAddedItem) CurrentItem = item;  
            }  
        } 

and it works fine with framework's ListView and DataGrid components with a binding to its ItemsSource property.

But RadGridView does not updates itself with "NotifyCollectionChangedAction.Add" but it works fine with "NotifyCollectionChangedAction.Reset". Am I doing something wrong ?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Apr 2010, 07:26 AM
Hi,

Can you post more info about your grid declaration/creation and version?

Regards,
Vlad
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
Ercument Berktas
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or