RadDatePicker is not executing the PickerPopupSettings.AcceptCommand after clicking Ok from the DatePicker popup - Issue in MAUI WinUI and works fine in other platforms.

1 Answer 66 Views
DatePicker
Mohammed Rameez
Top achievements
Rank 1
Iron
Iron
Mohammed Rameez asked on 12 Sep 2024, 01:55 PM

Hi Team,

I recently came across one issue with RadDatePicker while working on WinUI i.e. after selecting the value from DatePicker popup and clicking on Ok button, the Method (method name in the attached sample is AcceptExecuted) that is bind to PickerPopupSettings.AcceptCommand is not getting executed. 

The same commend i.e. PickerPopupSettings.AcceptCommand gets executed in Android platform.

Have attached the project as well, you will be able to reproduce it in it.

 

Thanks,

Mohammed Rameez Raza;

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 12 Sep 2024, 02:16 PM

Hi Mohammed Rameez Raza,

The behavior is expected as you are using the PopupSettings, which applies to the Popup picker mode of the control. The popup picker mode is available by default on mobile -  android and iOS, while on desktop (WinUI and MacCatalyst) the default picker mode is drop-down. This is described here: https://docs.telerik.com/devtools/maui/controls/datepicker/picker-mode and here: https://docs.telerik.com/devtools/maui/controls/datepicker/commands#ok-and-cancel-buttons 

In order to apply the same command on desktop for WinUI and MacCatalyst set the PickerMode to Popup:

<telerik:RadDatePicker Date="2020,05,15"
                            DisplayStringFormat="yyy-ddd-MMM"
                            PickerMode="Popup"  />

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DatePicker
Asked by
Mohammed Rameez
Top achievements
Rank 1
Iron
Iron
Answers by
Didi
Telerik team
Share this question
or