SFPicker firing OkButtonClicked event twice

As above, when the ok button on the footer is clicked, the event for it always fires twice.

I don't Particularly want to use OnSelectionChanged as there a few other functions that run when the item is selected.

Here is the xaml:

     <syncfusion:SfPicker HeaderText="Pick Information Character" x:Name="SelectTagOption" Margin="20" ShowFooter="True" PickerMode="Dialog"      FooterHeight="50" OkButtonClicked="TagTypeSelected" SelectedItemTextColor="ForestGreen"/>

Here is the C# 
     private void TagTypeSelected(object sender, Syncfusion.SfPicker.XForms.SelectionChangedEventArgs e)

Currently I am getting around this in my function by only processing if(SelectTagOption.IsOpen) and within the if statement, setting IsOpen to false

1 Reply

VA Vinnalan Aravazhi Syncfusion Team March 12, 2018 08:33 AM UTC

Hi Damien,

Thanks for contacting Syncfusion support.

We have checked the reported issue "SFPicker firing OkButtonClicked event twice" from our side and we are unable to reproduce the reported issue from our side.

We have attached the sample in which we have checked the reported issue from our side. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/136356/ze/SfPickerSample1260954832 

So, could you please provide below mentioned details,

1) Modified sample which replicates the reported issue.

2) Which platform, version and device model reported issue gets occur.

It will help us to provide appropriate solution on this.

Regards,
Vinnalan K A. 


Loader.
Up arrow icon