locked
ListView Items disappear on multi select RRS feed

  • Question

  • User387877 posted

    Hi everyone

    New to xamarin. Implemented Multi select list view based on observable collection. Listview cell contains Checkbox and Label.

    Multi select works but observed below issue. When i scroll and select an item, the listview items disppears but the list item selection is proper and when i just scroll up and down, listview items appear again.

    On search i can see people having concerns about the list selection disappearing, but in case selection is successful but on selection the listitems disappears.

    Not sure what could be the reason.

    Need some help here.

    Wednesday, July 31, 2019 3:30 PM

All replies

  • User89714 posted

    @sudha4u142

    On which platform(s) are you seeing the problem?

    Post your code and ideally a video of what you are seeing.

    Wednesday, July 31, 2019 10:35 PM
  • User387877 posted

    @JohnHardman

    The behavior is as attached.

    As of now i see this in android, ios didn't check yet Interactive listview items not getting updated in the list thats what i understand. not sure how to solve this.

    Tried with INotifyPropertyChange still same issue.


    Thursday, August 1, 2019 2:18 AM
  • User89714 posted

    @JohnHardman said: Post your code

    Without seeing your code, I assume that you are not binding the Checkbox to a View Model using two way binding.

    See https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/xaml-basics/data-binding-basics and https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/xaml-basics/data-bindings-to-mvvm

    Thursday, August 1, 2019 8:03 AM