Drag and detach a tab like IE does it?

3 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 30 Jan 2013 Link to this post

    Consider Internet Explorer 9.0 (and possibly other browsers too). When you start dragging a tab you get the possibility to detach it from the main window and move/drop it into what becomes a new main window.

    Can this be done using RadTabControl?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 31 Jan 2013 Link to this post

    Hi Kristoffer,

    The RadTabControl doesn't support this scenario out-of-the-box. However, you can use the DragDropManager to create a custom drag/drop logic that creates a new Window when a RadTabItem is dragged and dropped somewhere in your application. The specifics of this implementation will depend on your particular scenario.

    Let us know if you need more information.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. steven
    steven avatar
    32 posts
    Member since:
    Aug 2014

    Posted 28 May 2017 in reply to Tina Stancheva Link to this post

    I have a similar question. How can the drag the ItemTemplate and ContentTemplate to be displayed as the dragVisual

    when a drag and drop is intimated from the tabcontrol?  I can get of them being displayed as shown below.

    But how can  I get both of them?

      args.DragVisual = new ContentControl
                                          Content = data,
                                          ContentTemplate = (sender as RadTabControl).ContentTemplate

Back to Top