Drag from RadGallery

3 posts, 0 answers
  1. deepak
    deepak avatar
    25 posts
    Member since:
    Jan 2011

    Posted 03 Aug 2011 Link to this post

    Hi all
    I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak

    <Window x:Class="RadControlsWpfApp1.MainWindow"
                    Title="MainWindow" Height="350" Width="525" telerik:RadDragAndDropManager.DragQuery="Window_DragQuery">
                <telerik:RadGalleryItem telerik:RadDragAndDropManager.AllowDrag="True" Image="/RadControlsWpfApp1;component/PDF-04.png"></telerik:RadGalleryItem>
            <Image Source="/RadControlsWpfApp1;component/PDF-04.png" Grid.Row="1" telerik:RadDragAndDropManager.AllowDrag="True"/>
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    namespace RadControlsWpfApp1
        /// <summary>
        /// Interaction logic for MainWindow.xaml
        /// </summary>
        public partial class MainWindow : Window
            public MainWindow()
            private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)

  2. Tsvyatko
    Tsvyatko avatar
    832 posts

    Posted 04 Aug 2011 Link to this post

    Hello Deepak,

    I assume you are using version 2011.2 712. If this is the case  I can recommend one of the following solutions:

     - set RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy (set in the app constructor)
     - set DragDropManager.AllowCapturedDrag="true" (available in our latest internal build) in addition to telerik:RadDragAndDropManager.AllowDrag="True"

    Let us know if you have any further issues.

    Kind regards,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
  4. deepak
    deepak avatar
    25 posts
    Member since:
    Jan 2011

    Posted 04 Aug 2011 Link to this post

    I got the following error.
    {"The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals."}
Back to Top