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

ReOrdering Event in RadListBox

2 Answers 132 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Mahdi
Top achievements
Rank 1
Mahdi asked on 28 May 2014, 02:56 PM
I have a radlistbox bound to an observable collection that I can reorder
using drag and drop, but cant seem to find an event that fires when the
item is reorders.

Thanks

2 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 29 May 2014, 07:59 AM
Hi Mahdi,

What I can suggest you is to implement a custom ListBoxDragDropBehavior and override the Drop method in order to get notified once an item is dropped (you can get the dropped item as well as the insert index). For your convenience I have attached a sample project demonstrating the exact approach.

Hope this will work for you.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Mahdi
Top achievements
Rank 1
answered on 29 May 2014, 09:06 AM
Thank you Kalin for your quick response.

I could solve my problem with your advice and practical sample that you attached.
Tags
ListBox
Asked by
Mahdi
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Mahdi
Top achievements
Rank 1
Share this question
or