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

How to keep a item highlighted after moving it, thanks!

1 Answer 9 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
AUK
Top achievements
Rank 1
AUK asked on 05 Dec 2013, 03:40 AM
when you have an item selected and drag it somewhere can you ensure it is still highlighted when the page refreshes- at present a random other item is highlighted when you finish dragging..(seems to be the one in the previous dragged item place, so I think it's keep highlighting the item with the same index).

if I move item within the same level (parentId not change) then I can use following code to highlight the correct item:
Dim desItem As TreeListDataItem = TryCast(e.DestinationDataItem, TreeListDataItem)
desItem.selected = true

however if the dragged item's parentId changed then I don't know hot to keep that consistent...


Thanks!

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Dec 2013, 05:51 AM
Hi Luke,

The behavior you are describing is unusual and I am not able to replicate it on my end.

As you could see in our online demo of the TreeList - Drag-and-drop functionality, the dragged item remains selected no matter where it is dragged. Could you please refer to the demo and see what differs in your project.

Additionally, if you continue to experience this behavior, could you please elaborate on what RadControls version you are using, so we could try to replicate this locally.


Regards,
Konstantin Dikov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeList
Asked by
AUK
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or