RadGridView Drag Cue

2 posts, 0 answers
  1. Kyle
    Kyle avatar
    2 posts
    Member since:
    Jan 2009

    Posted 17 Nov 2010 Link to this post


    How can I make the Drag Cue for a RadGridView look like the row I am trying to drag.  I am currently creating my own drag cue with the code below but it does not look as good as the row itself.  Is there a property on the grid to accomplist this?

    if (e.Options.Status == DragStatus.DragInProgress)
      ContentControl cue = new ContentControl();
      cue.ContentTemplate = this.Resources["DraggedItemTemplate"] as DataTemplate;
      cue.Content = draggedItem;
      e.Options.DragCue = cue;

    <DataTemplate x:Key="DraggedItemTemplate">
      <StackPanel Orientation="Horizontal" Margin="2" Height="23" Opacity="0.7">
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFCEAC4E" Offset="1"/>
            <GradientStop Color="#FFD4B31A"/>
        <TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="5,3,0,0" />
        <TextBlock Text="{Binding Age}" Foreground="Gray" Margin="10,3,0,0" />
        <TextBlock Text="{Binding Department}" Foreground="Gray" Margin="15,3,0,0" />
        <TextBlock Text="{Binding Salary}" Foreground="Gray" Margin="20,3,0,0" />

  2. Tsvyatko
    Tsvyatko avatar
    863 posts

    Posted 18 Nov 2010 Link to this post

    Hello Kyle,

    Currently, we are working in providing new drag mode - autodrag which idea is to simplify the process of the drag and drop.

    In allows the following:

     - Auto approve drag and drop operation (instead handling dragquery and dropquery)
     - Auto set payload - received from DataContext of the source
     - Auto create dragcue - snapshot of the source UIElement.

    This mode will be included in our next latest internal build and will be set through AutoDrag attached property.

    Best wishes,
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top