SfPicker dont show items in "dialog" mode

Hi.
I am using the SfPicker control. I use the same color data that you have for example.
If I enable it as "Default" mode, the control works perfect. If I want to use it as "Dialog" mode, it does not show me items, footer or anything. Only a white box with shadow. I'm testing it on an Android phone.

Thanks in advance.

<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:syncfusion="clr-namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms" x:Class="Gesuro.Views.CarQuotePage" BindingContext="{Binding Main, Source={StaticResource Locator}}" Title="Iniciar Sesión"> <ContentPage.Content> <ScrollView BindingContext="{Binding CarQuote}"> <StackLayout> <syncfusion:SfPicker x:Name="picker" HorizontalOptions="Center" IsOpen="True" IsVisible="True" IsEnabled="True" ItemsSource="{Binding Colors}" PickerHeight="300" PickerMode="Dialog" PickerWidth="200" SelectionBackgroundColor="Blue" ShowHeader="True" ShowFooter="True" UnSelectedItemTextColor="Black" VerticalOptions="Center"> </syncfusion:SfPicker> </StackLayout> </ScrollView> </ContentPage.Content> </ContentPage>

3 Replies

VA Vinnalan Aravazhi Syncfusion Team June 12, 2018 07:36 AM UTC

Hi Sergio,

Thanks for contacting Syncfusion support.

Query: SfPicker don't show items in "dialog" mode on Android

We have checked your requirement from our side and we have created a sample based on our requirement. In this sample we open SfPicker in Dialog mode through button click. Please find the sample from below link.

Sample: http://www.syncfusion.com/downloads/support/forum/138070/ze/SfPickerDialog-1643079136 

Please let us know if you have any other queries.

Regards,
Vinnalan K A. 



SC Sergio Cossa June 12, 2018 11:53 PM UTC

Thanks, Vinnalan. Your example was very useful for me.
Best regards.


VA Vinnalan Aravazhi Syncfusion Team June 13, 2018 05:19 AM UTC

Hi Sergio,

Thanks for the update.

We are glad to know that you have achieved your requirement. Please let us know if you have any other queries.

Regards,
Vinnalan K A.

Loader.
Up arrow icon