Drag n Drop between ListBox and RadGridView

2 posts, 0 answers
  1. Pradnya
    Pradnya avatar
    31 posts
    Member since:
    Aug 2011

    Posted 22 May 2012 Link to this post

    Hi


    I have implemented reordering functionality in RadGridView its works fine. But when I am doing Drag n Drop functionality with ListBox and same grid view at that time its throwing following exception

    Stack Trace:
       at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
       at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
       at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
       at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
       at System.Windows.Controls.ItemsControl.AddVisualChild(Int32 containerIndex, DependencyObject container, Boolean needPrepareContainer)
       at System.Windows.Controls.ItemsControl.AddContainers()
       at System.Windows.Controls.ItemsControl.RecreateVisualChildren(IntPtr nativeItemsControl)

    Message
    Element is already the child of another element.

    Please help me how to resolve this issue?

    Thanks-
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 May 2012 Link to this post

    Hi,

     Will you post more info about your implementation? 

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top