SfPicker Bug

<picker:SfPicker
                PickerMode="Dialog"
                ItemsSource="{Binding ChatOptions,Mode=TwoWay}"
                DisplayMemberPath="Name"
                Margin="3,3,3,3"
                ShowHeader="true"
                ShowFooter="True"
                IsOpen="true"/>

i'm using a picker in app main page. and when setting IsOpen =true as a default , picker is not renderring , it is showing a blank popup even the header and footer are not showing.
on other side if isopen =false and i changed after loading it is working correclty

1 Reply

SP Sakthivel Palaniyappan Syncfusion Team April 6, 2020 12:06 PM UTC

Hi Mahmoud,

Greetings from Syncfusion.

We have analyzed your query and  if you set PickerMode as Dialog, then we have to open picker in any of the event or method dynamically. If you want to open picker as dialog mode in page loading , we suggest you to set IsOpen in OnAppearing method as like below code snippet.

XAML:
 
<picker:SfPicker x:Name="picker"  
                 PickerMode="Dialog"  
                 ItemsSource="{Binding Colors}"  
                 HeaderText="Select a Color" /> 
 

C#:
 
  protected override void OnAppearing() 
        { 
            base.OnAppearing(); 
            picker.IsOpen = true; 
        } 

we have prepared sample on this, please find the sample from below.


Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/PickerSample100908970.zip

Please let us know, if you have any other queries.

Regards,
Sakthivel P.
 


Loader.
Up arrow icon