This is a migrated thread and some comments may be shown as answers.

Prevent deselect item

3 Answers 55 Views
ListView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 Mar 2017, 01:28 PM

Hi,

How can i prevent that an item is deselected when i click on a selected item?

3 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 13 Mar 2017, 09:20 AM
Hi John,

RadListView works with commands and particulary in this case the ItemTapCommand. You can implement it and skip its execution when needed. But keep in mind it also handles the logic for action content. Another approach is to track the SelectionChanged event, and if the item is deselected(with no other item selected) you can select it again.

I hope this helps.

Regards,
Ivaylo Gergov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 13 Mar 2017, 09:23 AM

Hi,

I tried both solutions before but they don't work right for me.

0
Ivaylo Gergov
Telerik team
answered on 16 Mar 2017, 09:14 AM
Hello John,

Unfortunately these are the current available options.

Please, let me know if you have any questions or suggestions.  

Regards,
Ivaylo Gergov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
John
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
John
Top achievements
Rank 1
Share this question
or