Completed
Last Updated: 28 Aug 2023 13:01 by Teddy
Release 6.1.0
Teddy
Created on: 13 Jul 2023 14:13
Category: ComboBox
Type: Feature Request
2
ComboBox: Add an Event for the Clear button

We would like to be able to override the behavior of the Clear button in the editable combo box.

When the user has started typing into an editable combo box, and they click the Clear button before they've selected another item, we want to revert their text to what was in there before they started typing and keep the previously selected item selected, rather than clearing the text and selected item.

If you can add that functionality, even better, but it should be enough to just expose the Clear button's Click event (with a Cancel param or another way to ensure the text isn't cleared), so we can override the current functionality.

3 comments
Teddy
Posted on: 28 Aug 2023 13:01
Perfect. I'll take a look. Thanks Didi! 
ADMIN
Didi
Posted on: 28 Aug 2023 12:49

Hello Teddy,

With Telerik .NET MAUI 6.1.0, the ClearButton command is bindable. So you can override the default command execution and implement a custom logic. 

We have created a how-to article that described how to revert the ComboBox text to match the SelectedItem when X button is pressed and the selection is not lost: https://docs.telerik.com/devtools/maui/knowledge-base/combobox-clear-selection-command 

Regards,
Didi
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
ADMIN
Lance | Senior Manager Technical Support
Posted on: 13 Jul 2023 14:59

Hello Teddy,

Thank you for the suggestion, I have successfully added this to the backlog. Please note that even though I have set the status to Unplanned, that's only because it's not an explicitly listed item on the product roadmap (which doesn't prevent us from getting it into an upcoming release).

Regards,
Lance | Manager Technical Support
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.