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

Drag and detach a tab like IE does it?

2 Answers 176 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 30 Jan 2013, 03:49 PM
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 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 31 Jan 2013, 02:17 PM
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.

0
steven
Top achievements
Rank 1
answered on 29 May 2017, 01:15 AM

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
                                  };

Tags
TabControl
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
steven
Top achievements
Rank 1
Share this question
or