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

2 posts, 0 answers
  1. AUK
    AUK avatar
    47 posts
    Member since:
    Oct 2004

    Posted 04 Dec 2013 Link to this post

    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...

  2. Konstantin Dikov
    Konstantin Dikov avatar
    2386 posts

    Posted 09 Dec 2013 Link to this post

    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.

    Konstantin Dikov
    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.
Back to Top