• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ListView filter only matching first entry, not filtering the rest.

 
Ranch Hand
Posts: 50
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've managed to successfully (albeit broken) a filter for a ListView. It only filters the FIRST entry, and disregards the rest. Can anyone tell me what I'm missing?

I am so close to getting this!!!

Screenshots included below.

Here are the two methods that do the work:

BeforeFilterAttempt.png
[Thumbnail for BeforeFilterAttempt.png]
Before typing in filter. Notice Three Roses and One Dandelion
AfterTypingLetterR.png
[Thumbnail for AfterTypingLetterR.png]
Only TWO roses show up. There are THREE!
AfterTypingLetterD.png
[Thumbnail for AfterTypingLetterD.png]
There is ONE Dandelion, but NOTHING shows up! :-(
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't break out of the for loop on first mismatch. Let the matching proceed for all plants.
 
Christopher Sheridan
Ranch Hand
Posts: 50
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That did not fix it. Still digging.
 
It runs on an internal combustion engine. This ad does not:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic