Menu:

Sponsor

Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Forum's topics

Latest Files

Categories

Tree CheckBox

Flash Version: Flex 3
Total downloads: 13461
Category: Flex3 Component
File last revision: 24, Apr 2008 03:04:32
License: LGPL

Customization of the default Flex Tree component.
This component simply add a checkbox on every tree item.
The checkbox allows 3 states: selected, unselected, partially selected.
Then you can control the state of checkbox nodes within the code.

Changlelog:
- 2008-04-24 Ported to Flex3, completed with the tree source code

 Comments Feed

Do you like this file? Please make a little donation

Flash content

 

Comments (77)

rofromi on 23rd August 2010

Thanks for the component, it save me quite some time !

I have only one suggestion though : create a class named "TreeCheckBoxEvent" extending "TreeEvent", and define an "ITEM_CHECK" constant here. Then listen to "TreeCheckBoxEvent.ITEM_CHECK" instead of "itemCheck" string.

Thanks again !

@admin : it is possible to user an ArrayCollection, I just did it. Use the checkFunction property, and use invalidateList method when you have to refresh tree items.

jinarusha on 4th August 2010

Congratulations on your wonderful component!

I do have a question though.
I've added your Tree CheckBox component to a TitleWindow and I used PopUpButton to popup the TitleWindow.
-it seems that all the tree items are horizontally center aligned. Is there a way to set it to left aligned?

Thanks in advance.

karlmango on 5th July 2010

Seems like a great component. Having some problem to use it in Flex 4 though. Any plans for a Flex 4 release?
/Karl M

jerome on 29th June 2010

Has anyone gotten this working in flash builder 4?

algo on 17th April 2010

Este componente esta chingón, muchas gracias (This component Rules, thank you very much)

oliver on 13th April 2010

this is a small modification: http://www.oliver-merx.de/sepi/checktree.zip

if you add the line "checkbox = 'hide'" to a node the checkbox of a this item will be hidden.

freakyfish on 29th March 2010

This is a great component, but have some problem to skin the extended checkboxes with css and swf.

If it is possible, no experiences with custom itemRenderer yet. Hope somebody can help me...

tanmaydalvi on 9th March 2010

Oh, btw, @buddhatown: Remove openItems property, and add the fix I have mentioned. The list may jump a little sometimes, but you will find that it is not as annoying.

tanmaydalvi on 9th March 2010

Thank you for the component. It is exactly what I was looking for and made me look good in front of my manager :)

I was facing a small issue using it, and reporting it just in case someone else is stuck on the same problem.

The sample sets the openItems property. I didn't want to open the tree by default, though, so I removed it. If you do that, you will see that the values are not updated when the user clicks on an item. I ran into this issue, and put the following fix

In onItemCheck function, add the line


menuTree.openItems = event.item;


at the end.

Once again, thanks for the component.

buddhatown on 4th March 2010

I have a long list of checkboxes in this component. If I check the one of the checkboxes toward the bottom, it makes the list 'jump' back to the top. Kinda like a href anchor. Anyone else see/fix this?

Add your comment