SfPicker opened and closed via IsOpen binding cannot be reopened once initially closed

I am using an SfPicker in Dialog mode that opens in response to a page-level ToolbarItem being tapped. I use MVVM to bind the IsOpen property of the SfPicker to my View Model, the bound value of which is set to true when the ToolbarItem is tapped (via a Command). Once the user makes a selection or cancels selection, the dialog is closed (by setting IsOpen to false). From this point, setting IsOpen back to true via the data-bound property does nothing. The SfPicker does not present itself again unless the page is closed and re-op

I have hacked around this in the past by wrapping the picker in a grid the size of the page inside an AbsoluteLayout and then controlled visibility of the picker by hiding or showing the containing Grid using the IsVisible property. SfPicker itself seems to override IsVisible when IsOpen is set to true, so I cannot use this attribute alone, and I'd prefer not to have to use AbsoluteLayouts and wrap SfPickers wherever I use them.


4 Replies 1 reply marked as answer

JK Jeya Kasipandi Syncfusion Team July 1, 2021 02:11 PM UTC

Hi Andrew Hoke,

Sorry for the inconvenience caused.

We have checked the reported issue but we are not able to reproduce reported issue. Please find the tested sample from below link

Sample Link: https://www.syncfusion.com/downloads/support/forum/166835/ze/Picker322345901

Could you please check the issue with attached sample and let us know whether it is reproduced or not ?. If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application scenario or provide the sample and share which platform that you are facing the reported issue. This will be helpful for us to provide better solution at the earliest

Regards,
Jeya K  



AH Andrew Hoke July 1, 2021 03:54 PM UTC

When the Binding Mode is not set to TwoWay, the issue I have documented occurs. Is there a reason the default binding mode for IsOpen is not TwoWay?


Marked as answer

JK Jeya Kasipandi Syncfusion Team July 2, 2021 02:22 PM UTC

Hi Andrew Hoke,

We have validated your query and changed the default binding mode for the IsOpen property to TwoWay in source.Please find the patch details form below.

Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment

https://syncfusion.com/Installs/support/patch/19.2.0.44/1316477/F166835/SyncfusionPatch_19.2.0.44_1316477_7022021094322191_F166835.exe
(OR)

Please find the patch assemblies from below location:

https://syncfusion.com/Installs/support/patch/19.2.0.44/1316477/F166835/SyncfusionPatch_19.2.0.44_1316477_7022021094322191_F166835.zip
(OR)

Please find the NuGet from below location:

https://syncfusion.com/Installs/support/patch/19.2.0.44/1316477/F166835/SyncfusionNuget_19.2.0.44_1316477_7022021094322191_F166835.zip  
  
Assembly Version: 19.2.0.44

Disclaimer:

Please note that we have created this patch for version 19.2.0.44 specifically to resolve the issue reported in this. If you have received other patches for the same version for other products, please apply all patches in the order received

Note: Please clear the NuGet cache, before using the latest one.

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache  

We will include the fix in our weekly NuGet release which is availble on July 13, 2021.We appreciate your patience until then.

Regards,
Jeya K 



JK Jeya Kasipandi Syncfusion Team July 13, 2021 11:59 AM UTC

Hi Andrew Hoke,

Thanks for your patience.

We have included the fix in our latest Weekly NuGet release v19.2.0.47 which is available for download (https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Jeya K.

Loader.
Up arrow icon