3 Replies Latest reply on May 14, 2009 12:35 PM by bilen_cekic

    Bind data to Tree  ?

    bilen_cekic

      Hi all,

      I have a result from a webservice (as arraycollection)

      i can simply tell that it containts categories that have id,name,parentid

      as you see that parentid points that if that category is belong to an id .

       

      -ID----NAME---ParentID

      1-----cat1------0    <<<< 0 means that it is a main category

      2-----cat_sub----1    <<<<< that category is sub cat. of cat1

      3----cat2------0

      4----cat2_Sub----3

      5---cat_sub_sub----2

       

       

      so can i bind that data to tree in a simple way?
      What must i do ? I dont want to loop at all and look if it's parent or main and where it belongs to and add to tree.

      Is there a simple way?