ObservableCollection not refreshed

Hi,

I really struggle to refresh my observable collection.

As you can see in the video. It works for the first time. And then nothing appears anymore.

I think there is a bug in my code or in the SfListview.

Please find attached the video and the code.

thanks,

Attachment: TestChip_a431e9ab.zip

13 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 26, 2021 03:15 AM UTC

Hi Alexis,

Thank you for using syncfusion products.
 
 
#Regarding ObservableCollection not refreshed 
Currently we are validating the reported scenario and let you know the details about the issue on March 1, 2021. We appreciate your patience until then.   
 
Regards, 
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team March 1, 2021 12:34 PM UTC

Hi Alexis,  
 
Thank you for using syncfusion products. 
 
#Regarding ObservableCollection not refreshed 
We can understand that you are trying to maintain the selected chip items after clearing or reload the list view items. So, we would like to suggest binding selected items from view model property.  
  
Please check the below code and modified sample.    
public class Book : INotifyPropertyChanged  
 
              private List<Word> selectedItems = new List<Word>();  
              public List<Word> SelectedItems  
              {  
  
                             get { return selectedItems; }  
                             set  
                             {  
                                           selectedItems = value;  
                                           PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("SelectedItems"));  
                             }  
  
              }  
  
At Xaml:  
<SyncfusionButtons:SfChipGroup Margin="0,10"   
                               x:Name="cg"   
                               ItemsSource="{Binding Words}" SelectedItems="{Binding SelectedItems}" DisplayMemberPath="Name">  
. . .  
. . .  
  
  
Image after second selection.  
   
  
Please let us know if you have any concern.   
  
Regards,  
SaiGanesh Sakthivel 



AL Alexis replied to SaiGanesh Sakthivel March 2, 2021 11:37 AM UTC

Hi Alexis,  
 
Thank you for using syncfusion products. 
 
#Regarding ObservableCollection not refreshed 
We can understand that you are trying to maintain the selected chip items after clearing or reload the list view items. So, we would like to suggest binding selected items from view model property.  
  
Please check the below code and modified sample.    
public class Book : INotifyPropertyChanged  
 
              private List selectedItems = new List();  
              public List SelectedItems  
              {  
  
                             get { return selectedItems; }  
                             set  
                             {  
                                           selectedItems = value;  
                                           PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("SelectedItems"));  
                             }  
  
              }  
  
At Xaml:  
 
                               x:Name="cg"   
                               ItemsSource="{Binding Words}" SelectedItems="{Binding SelectedItems}" DisplayMemberPath="Name">  
. . .  
. . .  
  
  
Image after second selection.  
   
  
Please let us know if you have any concern.   
  
Regards,  
SaiGanesh Sakthivel 


Hi,

Sorry but it doesn't respond to my issue.

I updated the project by removing the chipcgroup with a listview.

I have exactly the same issue.

I have my listview which lists the languages. When I select 1 language it will show the list of books. But when I type several time and clear the collection. the ui is not refreshed anymore.

So if I use sfchipgroup or sflistview I have exactly the same issue. The issue is not related to selection but to itemssource refresh.

Thanks,

Attachment: TestChip_3b2a6905.zip


SS SaiGanesh Sakthivel Syncfusion Team March 3, 2021 04:37 PM UTC

Hi Alexis, 
 
Thank you for the update. 
 
#Regarding ObservableCollection not refreshed 
Currently, we are checking the reported scenario and we will update the further details on or before the March 5,2021. We appreciate your patience until then. 
 
Regards, 
SaiGanesh Sakthivel 



AL Alexis March 6, 2021 06:08 PM UTC

Hi,

Did you get some news? Thanks,


SS SaiGanesh Sakthivel Syncfusion Team March 8, 2021 11:10 AM UTC

Hi Alexis,  
 
Sorry for the inconvenience caused.  
 
#Regarding ObservableCollection not refreshed  
Currently, we are checking the reported scenario with development and we will update the further details on or before the March 10,2021. We appreciate your patience until then.  
  
Regards,  
SaiGanesh Sakthivel 



AL Alexis March 11, 2021 02:26 AM UTC

Hi guys,

Any issues? Please take your time and provide a fix.

Thanks a lot for your great support!


LN Lakshmi Natarajan Syncfusion Team March 11, 2021 03:55 AM UTC

Hi Alexis, 
  
Thank you for your patience. 
  
We have checked the reported issue ` ListView is not updated when the ItemsSource is changed at runtime` and logged the issue report for the same. We will fix the issue and include the issue fix in our next Weekly Nuget release update which is planned to roll out on April 6, 2021. We appreciate your patience until then. 
  
You can track the status of this report through the following feedback link, 
  
Note: The provided feedback link is private, you need to login to view this feedback. 
  
Regards, 
Lakshmi Natarajan 
 



LN Lakshmi Natarajan Syncfusion Team April 7, 2021 01:40 PM UTC

Hi Alexis, 
 
We regret to inform you that due to the complexity in fixing the issue, we could not include the fix in the release as promised. We will fix the reported issue and include it in our upcoming Weekly Nuget release which is planned to roll out on April 20, 2021. We will let you once release rolled out and appreciate your patience until then. 
 
Lakshmi Natarajan 
 



AL Alexis April 17, 2021 02:31 PM UTC

Ok. Sorry for the bug found.

No problem I will wait. Thanks,


SS SaiGanesh Sakthivel Syncfusion Team April 19, 2021 08:46 AM UTC

Hi Alexis, 
 
Thank you for the update. 
 
We will let you know once the release is rolled out and appreciate your patience until then. 
 
Regards, 
SaiGanesh Sakthivel  



LN Lakshmi Natarajan Syncfusion Team April 22, 2021 03:50 AM UTC

Hi Alexis, 
 
#Regarding ListView is not updated when the ItemsSource is changed at runtime 
We regret to inform that there are going to be delays longer than expected in making this work. Delays are mainly due to the complexity of the bug, given that numerous approaches tried already does not yield a sustainable solution that meets all ends. Currently, we are working with high priority to resolve the issue. We will fix the reported issue and include it in our upcoming Weekly nuget release which is planned to roll out on May 4, 2021. We will let you once release rolled out and appreciate your patience until then.   
 
Lakshmi Natarajan 
  
 



LN Lakshmi Natarajan Syncfusion Team April 28, 2021 04:07 AM UTC

Hi Alexis, 
 
Thank you for your patience.    
    
We have fixed the reported issue “ListView is not updated when the ItemsSource is changed at runtime” and included the issue fix in our latest Weekly NuGet release update version 19.1.0.58 which is available for download (https://www.nuget.org/).    
  
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.    
 
Regards, 
Lakshmi Natarajan 


Marked as answer
Loader.
Up arrow icon