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

RadListView - can't clear selected item

4 Answers 94 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Gerry
Top achievements
Rank 1
Gerry asked on 15 Feb 2017, 05:31 PM

I have a Telerik.XamarinForms.DataControls.RadListView and added a SelectionChanged listener (because I can't find the documentation for ItemTapped method signature). 

In SelectionChanged I navigate to another page, but when the user comes back the item is still selected. So I'd like to clear the selection. 

How?

4 Answers, 1 is accepted

Sort by
0
Gerry
Top achievements
Rank 1
answered on 15 Feb 2017, 05:58 PM

Just for the record, my ItemTapped method looks like

void ItemTapped(object sender, ItemTappedEventArgs e)

but the program throws an exception that the method signature is wrong trying to load the page.

 

0
Gerry
Top achievements
Rank 1
answered on 15 Feb 2017, 06:32 PM
Normally you would just set SelectedItem to null, but it is read-only in this case.
0
Gerry
Top achievements
Rank 1
answered on 15 Feb 2017, 07:25 PM

Changed 

    void ItemTapped(object sender, ItemTappedEventArgs e)

to

    void ItemTapped(object sender, ItemTapEventArgs e)

and now Tap works, but still unable to clear selection.

0
Gerry
Top achievements
Rank 1
answered on 15 Feb 2017, 07:48 PM
hum, sorry, wrong forum!
Tags
ListView
Asked by
Gerry
Top achievements
Rank 1
Answers by
Gerry
Top achievements
Rank 1
Share this question
or