Combo Box ListCollection

For questions and postings not covered by the other forums
bhowden
Posts: 2
Joined: Mon Oct 12, 2009 2:49 pm

Combo Box ListCollection

Postby bhowden » Tue Nov 10, 2009 9:49 pm

Is there a way to exclude items from a Combo box when you have a ListCollection. For example exclude those items that meet a certain condition such as past a certain date or a true false condition. Or is there a way to remove an item that is in the ListCollection if a certain condition is true/false or whatever.
I did see the removeItem option but can't get it to work.

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Combo Box ListCollection

Postby BeeJay » Tue Nov 10, 2009 10:25 pm

If you return null in the ComboBox::displayEntry method, then there will not be an entry in the ComboBox for that object. You can use this technique to suppress all entries from the underlying collection that you don't want displayed in the ComboBox.

Cheers,
BeeJay.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests