Start SfPicker with no selected item?

I am trying to use an SfPicker to select an option from a list. The UI is completely MVVM with no C# code-behind controlling UI/model state. I would like to be able to display the SfPicker with no initial selection so the user can pick the initial selection value. I've tried this with binding SelectedItem, but I get exceptions. I switched to using SelectedItemIndex binding, and using a value like -1 would throw an exception as the control is trying to get the value at index -1 from the source list. Please advise.

1 Reply

RS Ruba Shanmugam Syncfusion Team January 29, 2021 09:23 AM UTC

Hi Andrew,

Greetings from Syncfusion.

We would like to let you know that, We have already logged a feature request for "Provide the nullable SelectedItem for SfPicker", it can be tracked through our feedback portal below.

Feedback link: https://www.syncfusion.com/feedback/2306/provide-the-nullable-selecteditem-for-sfpicker 

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 for 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,
Ruba Shanmugam

Loader.
Up arrow icon