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

7 posts, 0 answers
  1. Edson
    Edson avatar
    1 posts
    Member since:
    Sep 2010

    Posted 20 Apr 2011 Link to this post

     
    How to disable the function of Drag and Drop Control Raddock?
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 21 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Peter avatar
    19 posts
    Member since:
    Sep 2011

    Posted 10 Apr 2012 Link to this post

    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
  5. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 10 Apr 2012 Link to this post

    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 >>
  6. MARIANO
    MARIANO avatar
    9 posts
    Member since:
    Sep 2011

    Posted 18 Jul 2012 Link to this post

    This could be applied to the documentwindow of the raddock????
  7. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 23 Jul 2012 Link to this post

    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 >>
  8. Denis Cilliers
    Denis Cilliers avatar
    62 posts
    Member since:
    Jan 2004

    Posted 14 Sep 2012 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready