Cardview not updating when source property is notified of change.

I've tried many methods of getting this to update and even this don't work. i can confirm that through breakpoint it does execute the ItemsChanged code




3 Replies 1 reply marked as answer

BR Bharathi Rajakantham Syncfusion Team March 24, 2021 01:42 PM UTC

Hi David, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked the reported query that the CardView not updating properly. We can’t replicate the reported issue from our side, the CollectionChanged event gets triggered properly when the source changes and the cardview gets updated properly in the UI. Please check the sample and the video for your reference. 
 
 
 
If we misunderstood your requirement, get back with more details on it. If possible, please share the issue reproducing project file and the video for the same. 
 
Regards, 
Bharathi R 



DC David Carter March 24, 2021 03:14 PM UTC

Please see altered version of the code you attached previously, I have added a button which modifies data in one of the CardViewModel Objects and even after adding another item it don't pick up this change to an age of 99 for the first item which i can see has changed from looking at the data when breaking on adding another

Attachment: CardView_Notification__f67c02dc.zip

I should probably also point out that there is a flaw in the .net collection modified logic and it don't pick when you change an item only when you add or remove and possibly replace (Not tried that yet.)


BR Bharathi Rajakantham Syncfusion Team March 25, 2021 01:32 PM UTC

Hi David, 

Thanks for your update. 

We have checked the reported query with the updated sample and found that you have created an Age property but not used RaisePropertyChanged to get notified whenever the property gets changed. We have modified the sample where the values of Age updating properly. Please refer the sample for your reference. 


Observed Image: 
 

Please let us know if you need any further assistance on this. We will be glad to assist you. 

Regards, 
Bharathi R 


Marked as answer
Loader.
Up arrow icon