Archive

Posts Tagged ‘list’

Prevent the drag possibility for some items in a dragEnabled Flex list

January 21st, 2010 Wannes No comments

If you have a Flex list (List, DataGrid, TileList or whatever) that is drag enabled, you don’t always want that each item of the list is draggable.
It should be very handy if Flex offers some kind of filter function that decides which items are draggable and which aren’t. Unfortunately such a function is not available yet.

The easiest way to prevent the dragging at this time is to listen to the dragStart event and prevent the default behavior when the item is not allowed to be dragged.

Read more…

Prevent row selection in a list or datagrid when an itemrenderer has been clicked

December 4th, 2009 Wannes No comments

When your list or datagridColumn has an itemRenderer with a component that can be clicked, you don’t always want to select the row in your list.
To prevent the selection, you need to listen to the mouseDown event and stop the propagation (event.stopPropagation()). Read more…

Categories: Flex Tags: , ,