This question is locked. New answers and comments are not allowed.
hi
i want to display text with datasource values wile draging from gridview to scheduleview
im using this template
the problem is that the drop(on the scheduleview) is disabled
how can i enable it?
i want to display text with datasource values wile draging from gridview to scheduleview
im using this template
<
telerik:RadGridView.Resources
>
<
DataTemplate
x:Key
=
"DraggedItemTemplate"
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding CurrentDraggedItem.name}"
FontWeight
=
"Bold"
/>
<
TextBlock
Text
=
"
/>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadGridView.Resources
>
this is the event i use
private void OnDragInitialize(object sender, DragInitializeEventArgs e)
{
DropIndicationDetails details = new DropIndicationDetails();
var item = (sender as RadGridView).SelectedItem;
details.CurrentDraggedItem = item;
IDragPayload dragPayload = DragDropPayloadManager.GeneratePayload(null);
dragPayload.SetData("DraggedData", item);
dragPayload.SetData("DropDetails", details);
e.Data = dragPayload;
e.DragVisual = new Telerik.Windows.DragDrop.DragVisual()
{
Content = details,
ContentTemplate = territorymanagementactionitems.Resources["DraggedItemTemplate"] as DataTemplate
};
e.DragVisualOffset = e.RelativeStartPoint;
e.AllowedEffects = DragDropEffects.All;
}
the problem is that the drop(on the scheduleview) is disabled
how can i enable it?