Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

RadObservableCollection.AddRange bug

$
0
0
Hello Graeme,

Thank you for the kind words for our little collection. I am posting the current implementation of AddRange here, so that you can confirm the changes that you would like to apply:

public virtual void AddRange(IEnumerable<T> items)
        {
            if (items == null)
            {
                throw new ArgumentNullException("items");
            }
 
            this.SuspendNotifications();
 
            foreach (T item in items)
            {
                this.Add(item);
            }
 
            this.ResumeNotifications();
        }
You want to avoid calling ResumeNotifications in the method, in case that the notifications were manually suspended before invoking the method, relying that you will resume them manually later?

Regards,
Ivan Ivanov
Telerik
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 Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>