【Only Android】SfTimePicker after select the times through tap, display is not exactly
Hello team!
I have a problems with SfTimePicker component.
SfTimePicker version : 24.1.41
Steps to Reproduce:
1. At 15:00:00 click to show SfTimePicker, displayed time in center and exactly.
In the hour column, select 17.
→ Problems 1 : After selected, 17 not move to center?
2. After selected 17 in the hour column and click button OK, get SelectedTime.
→ SelectedTime is return : 17:00:00
3. Click again to
show SfTimePicker and check display
→ Problems 2 : heighlight selected time is 15:00:00, not 17:00:00?
It doesn't appear on iOS, please fix it to work like ios.
Thanks in advance.
after selected 17 not move to center. after selected 17 not move to center.
Hi bao,
As per the shared information, we have checked the mentioned issue “SelectedTime not updating properly while close and reopen the .NET MAUI SfTimePicker” and it was working fine as expected from our end. We have tested with the below scenarios.
Tested scenarios:
Open a picker using a button clicked event with SelectedTime value as TimeSpan (15,0,0) and changed the hour to 17. Then close the picker and reopen, selected time updating properly.
Tested version:
24.2.7
Tested device:
Pixel 6 pro API 33
We have attached the tested sample and video for the same. If still, you are facing same issue means please modify the sample based on your scenario and revert us with more details. It will be helpful for us to analyze and provide you a solution at the earliest.
Regards,
Indumathi R
Attachment: TimePicker_6f7c913e.zip
Hi
Indumathi R,
Thank for your confirmation.
I was able to reproduce it by adding IsVisible="False" in source code attached.
Can you check again?
Best and regards.
<StackLayout>
<Button
x:Name="button"
Clicked="button_Clicked"
Text="Open" />
<picker:SfTimePicker
x:Name="picker"
IsOpen="false"
IsVisible="false"
Mode="Dialog">
<picker:SfTimePicker.FooterView>
<picker:PickerFooterView Height="40" />
</picker:SfTimePicker.FooterView>
</picker:SfTimePicker>
</StackLayout>
Hi bao,
As per the shared code snippet, we have checked the
mentioned issue “SelectedTime
not updating properly while close and reopen the .NET MAUI SfTimePicker”.
We are unable to reproduce the issue from our end by using the IsVisible
property value as false.
We have ensured
with below scenarios.
Tested scenarios:
Ensured the time picker UI rendering after the Selected time changes, it was working fine.
Ensured the SelectedTime in FooterView OkButton clicked event, here also selected time shown properly.
We have attached the tested video and sample for the same. If possible, can you please share the replication video clearly. It will be helpful for us to analyze further.
Regards,
Indumathi R
Attachment: TimePicker_6f7c913e_d7c8372f.zip
Hi Indumathi R,
Tested scenarios:
1. Open a picker using a button clicked event with SelectedTime value as TimeSpan (15,0,0) and changed the hour to 17 by select (not use scroll).
→ 17 not move to center.
2. Then close the picker and reopen, selected time updating properly.
I have attached the tested sample and video for the same.
Please check again.
Best and regards.
Attachment: TimePicker_c08abe87.zip
Hi bao,
We have found and fixed the mentioned issue “SelectedTime not updating properly while close and reopen the .NET MAUI SfTimePicker”. We will include the issue fix in our upcoming weekly NuGet release, which will be after our 2024 Volume 1 release. We will let you know once the release is rolled out. We appreciate your patience until then.
Regards,
Indumathi R
Hi bao,
We have fixed the reported scenario “SelectedTime not updating properly while close and reopen the .NET MAUI SfTimePicker” from our end. Due to testing phase, we have prepared patch including the issue fix and shared below. Please check with our patch and let us know whether your issue is resolved.
Note:
Before installing the patch, kindly remove bin and obj folders from all the projects of solution and clear NuGet cache:
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Set Up: MAUI Picker Patch Set Up
NuGet: MAUI Picker Patch NuGet
Disclaimer:
Please note that the custom patch was created for version 25.1.35 specifically to address this issue. The fix will be included in our upcoming weekly NuGet release. We appreciate your patience until then.
Regards,
Vishal O.
Hi bao,
We have fixed the reported scenario “SelectedTime not updating properly while close and reopen the .NET MAUI SfTimePicker” and included the issue fix in our latest weekly nuget release version 25.1.38, which is available for download at nuget.org. Kindly update to the latest version for resolving the issue.
Root cause:
When setting IsVisible property value as false, no need to show the control, but now control was shown. Now restricted the picker open when set the IsVisble value as false, then the selected time updating properly.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Regards,
Indumathi R