Reorder Items

2 posts, 0 answers
  1. Mel
    Mel avatar
    4 posts
    Member since:
    May 2011

    Posted 26 Mar 2013 Link to this post

    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 ?

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1237 posts

    Posted 29 Mar 2013 Link to this post

    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.

Back to Top