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
Flash content
Comments (77)
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.
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.
Seems like a great component. Having some problem to use it in Flex 4 though. Any plans for a Flex 4 release?
/Karl M
Has anyone gotten this working in flash builder 4?
Este componente esta chingón, muchas gracias (This component Rules, thank you very much)
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.
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...
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.
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.
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?
