David
David

Reputation: 1

Flex Combobox: Cancel Select

I've made an itemrenderer for the combobox control that shows a button next to the label. If a user clicks this button, the item gets removed from the dataprovider. Works so far. When he selects an item, the combobox closes, that's ok. But I don't want it to close when he removes an item.

So is there a way to cancel the change event? I have tried several things, but to no avail.

I have to use the combobox for layout reasons, don't have enough space to use listboxes...

Thanks for your help.

Upvotes: 0

Views: 478

Answers (2)

Pritam Jain
Pritam Jain

Reputation: 33

In your custom itemrenderer , on mouse down handler stop Immediate Propogation

event.stopImmediatePropogation();

Upvotes: 1

user180815
user180815

Reputation:

In your custom item renderer, try canceling the event in your button's click handler.

event.stopImmediatePropogation()

Upvotes: 0

Related Questions