Hi Sandeep, You can have a field named 'folder' with each element whether it is an item or folder, before accepting drag drop, you can check folder field for the item and accept accordingly.
Thanks & Regards, Shalu On May 9, 11:30 pm, sandeep reddy <[email protected]> wrote: > Hi > > I am working on the flex tree drag and drop functionality and i have couple > of questions on it. > > I have given a array collection as the data provider .Each branch(folder) > and leaf(item) has a unique id. > > the tree structure is some thing like this. > > folder1 > folder2 > item1 > item2 > item3 > folder3 > item4 > item5 > item6 > folder4 > item7 > item8 > folder5 > item9 > item10 > folder6 > folder7 > folder8 > > I need to to allow the user to drag and drop an item within the folder but > not outside a folder. But he can drag and drop a folder anywhere. > > So the user cant drag and drop an item folder1 or folder4 or folder6 level. > > I found couple examples on google...but nothing worked in my favor. > > Please some one help me with this one. > > -- > Thanks > Sandeep -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

