Binding Datasource and SelectedItem to Enum property in model

I'm trying to achieve two way binding to an Enum property with the SfComboBox. The Enum property is a child property of a property inside my binding context.

The list is being displayed however the SeletectedItem databinding isn't working. I have attached my code for reference.



Attachment: SfComboxEnumDemo_60413650.zip

3 Replies

SS Suganya Sethuraman Syncfusion Team January 19, 2021 05:50 AM UTC

Hi Raihan,

Greetings from Syncfusion.

Currently, we don’t have direct support to bind enum values in Xamarin SfComboBox. So, we have considered “Provide support for bind enum value in SfComboBox ” as a feature and already logged this as a feature request, and you can track the status of this feature implement through below link

Feedback link: https://www.syncfusion.com/feedback/17634/provide-support-for-bind-enum-value-in-sfcombobox

Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available in any of our upcoming releases.

If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.

Regards,
Suganya Sethuraman.
 



RI Raihan Iqbal replied to Suganya Sethuraman January 21, 2021 01:09 AM UTC

Hi Raihan,

Greetings from Syncfusion.

Currently, we don’t have direct support to bind enum values in Xamarin SfComboBox. So, we have considered “Provide support for bind enum value in SfComboBox ” as a feature and already logged this as a feature request, and you can track the status of this feature implement through below link

Feedback link: https://www.syncfusion.com/feedback/17634/provide-support-for-bind-enum-value-in-sfcombobox

Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available in any of our upcoming releases.

If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.

Regards,
Suganya Sethuraman.
 


Hi Suganya,

Thanks for raising the feature request however I was able to achieve the desired result using value converters. Code attached for reference.

Attachment: SfComboxEnumDemo_4e2355a0.zip


SS Suganya Sethuraman Syncfusion Team January 21, 2021 06:38 AM UTC

Hi Raihan,

Thanks for the update.

We glad that the issue has been resolved and please get back to us if you need any other assistance.

Regards,
Suganya Sethuraman.
 


Loader.
Up arrow icon