This is a migrated thread and some comments may be shown as answers.

I want to allow duplicate entries in RadTreeView

1 Answer 83 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 13 Jul 2011, 07:34 PM
Is there a setting which will allow me to place duplicate entries into a RadTreeView?  I am dragging from a GridView into a TreeView, and sometimes I need to allow the user to place the same object more than once.  I need to create the following tree:

Bird
--Cardinal
--Cardinal
--BlueJay
--BlueJay

I also see the following issue.  When I have this tree:

--Bird

I can drop Cardinal to get:

--Bird
--Cardinal

If I Try to add another Cardinal, I need to "Drop After" Bird, because I can't "Drop Before" or "Drop After" Cardinal, since it has the same object properties, I get the DropImpossible icon everywhere overtop of Cardinal.  This is a problem because everyone wants to drop at the end of the list, which is considered over Cardinal.

Finally, if I create a tree with duplicate entries anyway, the tree gets re-ordered, and the selected items act very strangely also.

I will try to create:

--Bird
----Cardinal
----BlueJay
----Cardinal

and when I drag and drop them in that order, it will be re-ordered to:

--Bird
----Cardinal
----Cardinal
----BlueJay

If I select the Child item Cardinal, it might select the other Cardinal item instead.

Thanks for your help,
Scott

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 18 Jul 2011, 04:34 PM
Hi Scott,

Currently we are aware of the selection issue that occurs when equal objects are created in the RadTreeView. You can track its status here. We will be working on RadTreeView`s issues during Q3 but we cannot provide an estimated time when this will be resolved.
On the other hand, custom Drag And Drop behavior could be achieved with RadDragAndDropManager and its events. You can examine its documentation here and check out the demos here.

Best wishes,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeView
Asked by
Scott
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or