Maui Rad TimePicker: Do not change Time while popup is open or Detect if Popup is Showing

1 Answer 33 Views
TimePicker
Karsten
Top achievements
Rank 1
Karsten asked on 13 Nov 2023, 01:07 PM | edited on 13 Nov 2023, 01:10 PM

We use a Maui RadTimePicker. We regulary update the Time Property from code behind to provide the user with a meaningful starting value.

But if the popup is open, an Update of the Time Property currently changes the current user selection. It's confusing for the user if his selection get's magically changed. Potentially right before he hits ok.

From my point of view the current behaviour is a bug. 

Workaround for us would be to try to detect if the popup is open and not update the Time Property in this case. But how can we detect in code if the popup is showing?

 

Thanks,

 Karsten

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 16 Nov 2023, 02:37 PM

Hello Karsten,

We consider the current behavior of the TimePicker as expected - the value is updated in code-behind and the change is reflected in the UI.

I understand in the concrete case you'd like to suppress the update when the popup is shown, this is a valid scenario and we will have to expose API for detecting the popup/dropdown state. So I've logged this as a feature request on your behalf in our public feedback portal, here is the link:

TimePicker: Provide a way to detect if the selector is shown

Please follow the item in order to get notified on status changes. 

I am sorry I wasn't of much help in this case.

Regards,
Yana
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Tags
TimePicker
Asked by
Karsten
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or