Can still change selection in RadListView when IsEnabled is False

1 Answer 59 Views
ListView
Zdenek
Top achievements
Rank 1
Zdenek asked on 01 Sep 2023, 12:17 PM | edited on 01 Sep 2023, 12:20 PM

So I have a problem,

 

when i do this: 

<telerik:RadListView IsEnabled="false" SelectionMode="Single" SelectionGesture="Tap">

I can still select/deselect item even though the component is disabled. It just changes color, but behaves like enabled component. 

 

Is this a bug, or am I missing something??

1 Answer, 1 is accepted

Sort by
0
Maria
Telerik team
answered on 04 Sep 2023, 03:13 PM

Hello Zdenek,

I tested the behavior of the control. The selection is changed from the view model and the UI is updated even when the component is in the disabled state. Note that you cannot change the selection when tapping on items in the ListView control when the control is Disabled - IsEnabled="False". You can change it programmatically or through external UI. In the case of the demo, I used Button. I am attaching the file with the example provided in it.

I hope this helps.

Regards,
Maria
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
ListView
Asked by
Zdenek
Top achievements
Rank 1
Answers by
Maria
Telerik team
Share this question
or