SfChipGroup with Enums and MVVM - selected item binding

Hello,


I am having trouble binding a SelectedItem to SfChipGroup from my ViewModel (TwoWay binding mode). 


This SfChipGroup has a collection of Enum values as an ItemsSource and its SelectedItem is an enum value from this collection. Both of these are binded from the ViewModel. The individual chips and their labels are binded and displayed correctly; however, the selected item binded from ViewModel is not highlighted (SelectedChipBackgroundColor, SelectedChipTextColor). The highlighting only works when I manually tap on a Chip in my running application. Therefore, I feel like the binding works only in a direction from the View to my ViewModel.


Is there a way to resolve this issue and to fix the initial binding of SelectedItem from my ViewModel?


Thanks



8 Replies 1 reply marked as answer

DD Devakumar Dhanapoosanam Syncfusion Team November 18, 2021 01:58 AM UTC

Hi Ondrej Slimak, 
 
Greetings from Syncfusion.

Currently we are analyzing on the reported query at our end, and we will update you the details on or before November 19, 2021.
 
 
Please refer the below KB  
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team November 19, 2021 03:47 PM UTC

Hi Ondrej Slimak, 
 
We were able to reproduce the reported issue at our end and we are forwarded this to our development for validation. We will update the complete validation details on November 22, 2021.  
 
Regards, 
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team November 23, 2021 03:04 AM UTC

Hi Ondrej Slimak, 
 
Sorry for the delay. We still need some more time to validate the reported issue at our end and we will update the complete details for reported issue and the fix timeline in two business day on November 24, 2021. We appreciate your patience until then. 
 
Regards, 
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team November 24, 2021 07:28 AM UTC

Hi Ondrej Slimak, 
 
Thanks for your patience. We have confirmed that the reported issue as a bug “Enum collection does not support SelectedItem property” and the fix for the reported issue will be available in our upcoming weekly NuGet release which is expected to be roll out on November 30, 2021. We appreciate your patience until then. We will let you know once it gets rolled out. 
 
 
Note: The provided feedback link is private, and you need to login to view this feedback. 
 
If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards, 
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team November 30, 2021 09:56 AM UTC

Hi Ondrej Slimak, 
 
Due to some technical hurdle, we were unable to move this fix into our today weekly NuGet release (19.3.0.56). Sorry for the inconvenience caused. 
   
We will move this fix into our next upcoming weekly NuGet release which is scheduled to be rolled out on December7, 2021. We appreciate your patience until then. Also, we have generated the patch with latest release version, please download patch from following link.

Please find the patch from the below link: 
   
Please find the patch assemblies alone from below location: 
   
Please find the NuGet from below location: 
 
Assembly Version: 19.3.0.53 
 
Disclaimer: 
Please note that we have created this patch for version 19.3.0.53 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.   
 
Please clear the NuGet cache, before using the latest one. 
 
Regards, 
Devakumar D 



DD Devakumar Dhanapoosanam Syncfusion Team December 7, 2021 07:46 AM UTC

Hi Ondrej Slimak, 
 
We are glad to announce that our weekly NuGet was rolled out and fix for the reported issue was included in the weekly NuGet.  
 
NuGet Version: 19.3.0.57 
 
We thank you for your support and appreciate your patience in waiting for this release. Please contact us if you would require any further assistance. 
 
Regards, 
Devakumar D 


Marked as answer

KH kris hoobergs replied to Devakumar Dhanapoosanam February 22, 2022 07:47 PM UTC

Hi All,

I'm also interested in an example of how this is achieved.  Is it possible to show me some code or a working example for this case.

Regards
Kris



YP Yuvaraj Palanisamy Syncfusion Team February 24, 2022 02:57 PM UTC

Hi Kris, 
 
We have prepared the sample for SfChipGroup with enum and MVVM binding a selected item. Please find the sample from the below link. 
 
 
Regards, 
Yuvaraj 
 


Loader.
Up arrow icon