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

How to disable the function of Drag and Drop Control Raddock?

6 Answers 409 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Edson
Top achievements
Rank 1
Edson asked on 20 Apr 2011, 03:29 PM
 
How to disable the function of Drag and Drop Control Raddock?

6 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 21 Apr 2011, 09:32 AM
Hi Edson,

Please find the answer to your question in the following documentation article: Using the DragDropService.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Peter
Top achievements
Rank 1
answered on 10 Apr 2012, 06:22 PM
That page doesn't answer the other person's question, which I also have..

Namely, how do I programatically turn off drag and drop on a radDocking (WPF)

even better would be a freeze/thaw on the RadDocking itself, but I've learned that Telerik doesn't do such things like users might need.. instead driving us to write half the control code ourselves..  :(

-Peter
1
Nikolay
Telerik team
answered on 10 Apr 2012, 09:29 PM
Hi Peter,

Please note that this thread concerns RadDock for WinForms rather than RadDock for WPF. I would kindly ask you to address your question in the appropriate forum section as this will allow our community to find the qestion and its respective answer more easily there.

As to the case of RadDock for WinForms, DragDropService is the way to cancel (disable) the drag and drop operations in RadDock and this is why the documentation article has been provided:

public Form1()
{
    InitializeComponent();
 
    DragDropService service = this.radDock1.GetService<DragDropService>();
    service.Starting += new StateServiceStartingEventHandler(service_Starting);
}
 
void service_Starting(object sender, StateServiceStartingEventArgs e)
{
    e.Cancel = true;
}

All the best,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
MARIANO
Top achievements
Rank 1
answered on 18 Jul 2012, 07:34 PM
This could be applied to the documentwindow of the raddock????
0
Nikolay
Telerik team
answered on 23 Jul 2012, 02:21 PM
Hi Mariano,

This will work for DocumentWindows as well - it will not allow you to drag a DocumentWindow and drop it to another set of document windows. However, this approach will not prevent you from reordering DocumentWindows that are situated in one and the same sub container (DocumentTabStrip).

Let me know if you have additional questions.

Greetings,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Denis Cilliers
Top achievements
Rank 1
answered on 14 Sep 2012, 03:57 PM
For all the VB.net out there

Public Sub New()
  
        ' This call is required by the designer.
        InitializeComponent()
  
        ' Add any initialization after the InitializeComponent() call.
  
        Dim service As DragDropService = Me.radDockMain.GetService(Of DragDropService)()
        AddHandler service.Starting, AddressOf service_Starting
  
  
    End Sub
  
    Sub service_Starting(ByVal sender As Object, ByVal e As StateServiceStartingEventArgs)
        e.Cancel = True
    End Sub
Tags
Dock
Asked by
Edson
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Peter
Top achievements
Rank 1
MARIANO
Top achievements
Rank 1
Denis Cilliers
Top achievements
Rank 1
Share this question
or