DragDrop in 2011 q1 sp1

12 posts, 0 answers
  1. Sonya L
    Sonya L avatar
    36 posts
    Member since:
    Dec 2009

    Posted 04 May 2011 Link to this post

    I currently have a treeview bound to a binding list, and have AllowDragDrop and AllowDrop set to true.  However, none of the drag events are firing.  Is there something else I need to set?  The documentation does not seem to be updated for this version.  Thanks!
  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 09 May 2011 Link to this post

    Hello Sonya,

    Thank you for writing.

    The documentation is updated and now you can find the answers to your questions there. Please note that currently the drag and drop functionality works only in unbound mode.

    Should you need further assistance, do not hesitate to contact us. 

    All the best,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sonya L
    Sonya L avatar
    36 posts
    Member since:
    Dec 2009

    Posted 09 May 2011 Link to this post

    Why doesn't this work in bound mode?  it worked fine in previous versions.  Is this a bug?
  5. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 12 May 2011 Link to this post

    Hi Sonya,

    As you know, in Q1 2011 we have introduced a refactored version of RadTreeView. One of the main upgrades that we have made is that we changed the data and presentation layers of the control. Currently, with the new data layer, the insert operation required by the drag and drop functionality is not implemented. However, we are planning to implement such a functionality in a future release. Please follow this link, where you can add your vote for this feature request.

    I hope the provided information addresses your question. Should you have any other questions, do not hesitate to contact us.

    Best wishes,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  6. mark
    mark avatar
    2 posts
    Member since:
    Aug 2012

    Posted 31 May 2011 Link to this post

    This issue says 'resolved' in PITS, does that mean it's now available to downlaod in the latest internal build?

  7. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 03 Jun 2011 Link to this post

    Hi mark,

    Thank you for writing.

    The issue status is actually "Open", but not "Resolved", which means that it is not implemented yet.

    Should you have any other questions, or suggestions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  8. mark
    mark avatar
    2 posts
    Member since:
    Aug 2012

    Posted 16 Jul 2011 Link to this post

    Are there any ways around this? I was hoping this functionality would return in Q2 but doesn't look like it is :(

  9. Svett
    Admin
    Svett avatar
    728 posts

    Posted 19 Jul 2011 Link to this post

    Hello Mark,

    You can work around this by using RadTreeView in unbound mode instead of using data source binding. The issue is not trivial and needs redesigning the tree's data engine.

    Regards,
    Svett
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  10. John
    John avatar
    2 posts
    Member since:
    Mar 2013

    Posted 25 Mar 2013 Link to this post

    Public Issue Tracker says this issue is resolved. Has this been fixed or PIT is still incorrect. If not fixed can you tell me the ETA on implementing this feature?

    John
  11. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 28 Mar 2013 Link to this post

    Hi John,

    Yes this issue is addressed and you can use drag & drop functionality in RadTreeView when using bound mode. If you need assistance with this scenario, I will be glad to help.
     
    All the best,
    Jack
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  12. John
    John avatar
    2 posts
    Member since:
    Mar 2013

    Posted 07 Apr 2013 Link to this post

    Jack,

    Glad to hear treeview drag and drop works in bound mode; but, I can't seem to find much information about it. I have searched windform documentation, knowledge base, forum, and code library.
    Do you have a sample program (in VB) demonstrating this feature for me to study?

    John
  13. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 10 Apr 2013 Link to this post

    Hello John,

    There is no specific documentation about this because there is almost no difference between the drag & drop feature in bound and in unbound mode. The only limitation is that you cannot reorder items in bound mode because the item order has no relevance in SQL data sets. In order to turn on this feature you should set the AllowDragDrop feature to true. Here is a full sample in VB:
    Dim MyRadTreeView1 As RadTreeView = New RadTreeView
    MyRadTreeView1.Dock = DockStyle.Fill
    Controls.Add(MyRadTreeView1)
     
    Dim table As DataTable = New DataTable()
    table.Columns.Add("ID", GetType(Integer))
    table.Columns.Add("ParentID", GetType(Integer))
    table.Columns.Add("Name", GetType(String))
     
    For I As Integer = 1 To 10
        table.Rows.Add(I, Nothing, "Name " & I)
    Next
     
    MyRadTreeView1.DataSource = table
    MyRadTreeView1.DisplayMember = "Name"
    MyRadTreeView1.ParentMember = "ParentID"
    MyRadTreeView1.ChildMember = "ID"
    MyRadTreeView1.AllowDragDrop = True

    I hope it helps.
     
    Greetings,
    Jack
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top
UI for WinForms is Visual Studio 2017 Ready