Unselect or set null on SelectedItem on SfPicker

Hi,

I am using SfPicker in Xamarin. I would like to make unselected on SelectedItem property. So set null to SelectedItem. Reason is that I am using custom ItemTemplate . This makes huge gap between picker header and first item below.


How to remove or shrink this gap? or alternatively I would like to set null value or unselect to SelectedItem property.


1 Reply

RS Ruba Shanmugam Syncfusion Team July 6, 2022 11:10 AM UTC

Hi Leah,


Query 1: Unselect or set null on SelectedItem on SfPicker


We have validated your query and currently, we don't have support for “Setting the null for SfPicker”. Already we have logged a feature request on this, and it can be tracked through our feedback portal below.


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


Please upvote this feature to make this our priority. While this feature itself is important we will prioritize the features every release, based on the user demands.


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


Query 2: How to remove or shrink this gap?


In the SfPicker the first item is shown in the center of the view. If we scroll, the selection will change based on the center position. Based on the Picker implementation the space will show and we can't remove the gap.


Regards,

Ruba Shanmugam


Loader.
Up arrow icon