How to select non on ListPickerButtonToolbarItem

0 Answers 42 Views
Toolbar
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Mark asked on 07 Dec 2023, 12:03 PM | edited on 07 Dec 2023, 12:44 PM

Hi,

I am using the ListPickerButtonToolbarItem list picker with MVVM and binding to an observable property,

If I set the selected item to null (so none is selected) this doesnt seem to deselect it
Its not highlighted the same as when its selected but it is still styled differently to the other other items and looks selected when I go back to choose another item.

How do we deselect the item or style the selected item in the toolbar 
ListPickerButtonToolbarItem so at least it looks the same selected or not selected?

Mark
Top achievements
Rank 3
Iron
Iron
Iron
commented on 08 Dec 2023, 09:30 AM

The dropdown lists could also do with rollovers
Yana
Telerik team
commented on 11 Dec 2023, 01:20 PM

Hello Mark,

In general setting SelectedItem to null should clear the selection - I've checked this and it works properly on my side. I've attached my test app for a reference, can you download it and give it a try? What's different in your case? Please send me some snippets, so I can take a look.

Also, could you elaborate a little bit more on the second issue you've mentioned ( "The dropdown lists could also do with rollovers")?

I look forward to your reply.

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

No answers yet. Maybe you can help?

Tags
Toolbar
Asked by
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or