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

Reorder Items

1 Answer 70 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Mel
Top achievements
Rank 1
Mel asked on 26 Mar 2013, 08:35 PM
Hello,
I am trying to use the tab reordering feature to save the tab order when changing, but without any luck. I tried to do the exactly same thing as shown here, by listening to the DropInfo/DropQuery events, but but i always get Source RadTabControl and Destination null. I am using Telerik.Windows.Controls Version 2012.2.912.1040. Can you please help me with a working sample using this version ?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 29 Mar 2013, 03:35 PM
Hello Mel,

By the time of the release (SP2 2012) we changed the internal logic of the RadTabControl to use the DragDropManager instead of the RadDragAndDropManager. This is why the events are fired with wrong arguments or are not fired at all. However, in order to achieve the same functionality with the DragDropManager you can subscribe to the DragDropCompleted event and implement your custom logic in the handler. Please note that we have to subscribe to the event with HandledEvents (third parameter of the AddDragDropCompletedHandler() method) set to true.

For your convenience we implemented this approach in the attached project. Please take a look at it and let me know if it works for you.

Kind regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TabControl
Asked by
Mel
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or