RadListView - can't clear selected item

5 posts, 0 answers
  1. Gerry
    Gerry avatar
    34 posts
    Member since:
    Jan 2017

    Posted 15 Feb 2017 Link to this post

    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?

  2. Gerry
    Gerry avatar
    34 posts
    Member since:
    Jan 2017

    Posted 15 Feb 2017 Link to this post

    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.

     

  3. Gerry
    Gerry avatar
    34 posts
    Member since:
    Jan 2017

    Posted 15 Feb 2017 in reply to Gerry Link to this post

    Normally you would just set SelectedItem to null, but it is read-only in this case.
  4. Gerry
    Gerry avatar
    34 posts
    Member since:
    Jan 2017

    Posted 15 Feb 2017 in reply to Gerry Link to this post

    Changed 

        void ItemTapped(object sender, ItemTappedEventArgs e)

    to

        void ItemTapped(object sender, ItemTapEventArgs e)

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

  5. Gerry
    Gerry avatar
    34 posts
    Member since:
    Jan 2017

    Posted 15 Feb 2017 Link to this post

    hum, sorry, wrong forum!
Back to Top