In a previous example, “Auto-scrolling a TextArea control in Flex”, we saw how you can auto-scroll a Flex TextArea control when new content is added by setting the verticalScrollPosition property to the value of the maxVerticalScrollPosition property.
The following example shows how you can auto-scroll a Flex DataGrid control using the ArrayCollection object’s collectionChange event, and the verticalScrollPosition and maxVerticalScrollPosition properties
Full code after the jump.
Continue reading ‘Creating an auto-scrolling DataGrid control in Flex’
The following example shows how you can detect when a Flex ArrayCollection has changed (items added, removed, refreshed) by listening for the collectionChange event.
Full code after the jump.
Continue reading ‘Determining when an ArrayCollection changes in Flex’
The following examples show how you can display specific items in a Flex ArrayCollection using the getItemAt() method and the array access operator ([]).
Full code after the jump.
Continue reading ‘Displaying specific items from an ArrayCollection in Flex’
The following example shows how you can create a view cursor to find a specific item within an ArrayCollection.
Full code after the jump.
Continue reading ‘Creating a view cursor on an ArrayCollection in Flex’
The following example shows how you can filter items in a Flex DataGrid using a CheckBox control, and the ArrayCollection class’s filterFunction property.
Full code after the jump.
Continue reading ‘Using a CheckBox to filter items in a DataGrid in Flex’
The following example will show you how you can use a CheckBox control as a custom item renderer in a List control in Flex.
I haven’t done a lot of testing yet, so if you have any tips/suggestions/improvements, please, share them in the comments.
Full code after the jump.
Continue reading ‘Using a CheckBox control as a list item renderer in Flex’