Flex tree view.

Filed under: Flex — Wrote by Campbell on Thursday, September 21st, 2006 @ 12:48 am

We have a project on at the moment that uses Flex as a UI for .net. Very cool and Ill out line that a bit later. But what I have been spending some time with is the ItemRenderer and the Tree component. One of the major points for this customer was that a) it cant look like flex (so much so I have to build a custom right click menu and manager) and two there had to be alot of functionality built into the tree view as this was the basis for the whole project.

While the ItemRenderer is great, I cant help feel like im hacking the framework a bit when I have to override major class methods. I will post some examples next week after I have some more time under my belt with this control as there is a serious lack of these out there (and the documentation is a bit limited). Basically when you place a tree in your app, you can define an ItemRenderer for that tree. This is a class that extends the ItemRenderer interface and can override some methods where you add in your extra "stuff", say handeling the data change and changing the icon, adding custom drag details which is my major pain at the moment.

I am however loving working with the flex framework. It feels like I acheive so much so quickly. It almost takes more time to tweak the flex look out of the UI than develope the thing. Check out Scott Barnes post

Flex 2 Skinning needs more work.

for more about that.  

 

5 Comments   -
  • Comment by Campbell | September 21, 2006 @ 2:15 am

    P.S. if you have good links about the tree ItemRenderer I would greatly appreciate them commented here :o )

  • Comment by Martin | September 21, 2006 @ 5:40 am

    If you have not already, you should check out:

    http://www.teotigraphix.com/flex2/components/controls/checkboxtreefx

  • Comment by Deepa Subramaniam | September 27, 2006 @ 7:01 am

    Hello -

    I am one of the Flex Framework engineers and I’m interested in getting more information from you regarding your custom Tree itemRenderer problems so that we can look into them for our next release. Specifically, I’d like to know which methods you’d like to override that you currently are unable to and any other grievances that came up while working on a highly customized itemRenderer. Please email me directly at the email address submitted with this comment with any more information and if possible, code snippets.

    Cheers – looking forward to hearing from you,

    Deepa Subramaniam
    Flex Framework Engr

  • Comment by Campbell | September 30, 2006 @ 6:10 pm

    Kewl Ill flick ya an email Deepa. Good work on the flex framework by the way.

Leave your comment

© Flex developer, Campbell Anderson, from New Zealand – xsive blog -