Thread: About TreeField
View Single Post
Old 03-13-2007, 07:50 AM   #7
renuka_anil
Thumbs Must Hurt
 
Join Date: Mar 2007
Location: India
Model: 8100
Carrier: Airtel
Posts: 64
Post About tree- field

Hi All,

i got the way to display tree along with table.

But, there is little problem, I got the tree but not in the order I want. Nodes are not in proper way.
First all parents are displayed then their children are shown. They are in order.
But I want order is that If 1st parent is displayed then after that it's all children should be shown then the parent among that children is shown.
E.g
there is tree with following node where P is parent and C is child
P1 - C1, C2, P2
P2 - C3, C4,P3
P3 - P4
P4 - C5, P5

The tree I want is like

P1
- c1
- c2
- p2
- - c3
- - c4
- - p3
- - - p4
- - - - c5
- - - - p5

But I got

P1
- p2
- - p3
- - - p4
- - - - p5
- - - - c5
- - c3
- - c4
- c1
- c2


Can anybody help me to make tree in correct order.

Thanks
__________________
Crazy for BlackBerry
Offline