I have several grids that are bound to large collections of objects that change frequently either from a background updater thread or by an edit in the xamgrid. For performance, and simplicity, I would like to use something like an ObservableDictionary<int, MyObject> to store the data where the key is a unique lookup value and the value is the object itself.
I can't figure out how to bind xamgrid to this type of data structure. Obviously, I can make an ObservableCollection<MyObject> off the dictionary Values but this is problematic in that to add update items you have to manually sync bptj the observablecollection and the dictionary.
Anyone else ever wanted to this.
Hello,
I have logged this with development under ID: 101620 and I have also created a support ticket on your behalf: CAS-84326-PVWDJ0 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
Also the issue you provided is different from this one. It was about grouping childbands and it was already fixed in 2068.
Well, it appears that using the "Value.Property" as the key to your column still causes a crashing problem with grouping and filtering. I had reported this as a bug a while back (Issue #81412) and received an email that it was fixed in build 2045 but I just downloaded 2068 this morning and it has either been reintroduced or was never properly fixed (sorry for not testing earlier). To see what I'm talking about, open the attached and drag the "Age" column up into the group by area.
Well, that was simpler than I thought. I took your example and added a few things (implemented INotifyPropertyChanged on MyObject and added another button to test it). Works just like I wanted. Thanks so much!
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a class that Derives from Dictionary and INotifyCollectionChanged and implemented Add and Remove methods and added notification to the setters. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.