Example #1
0
 private void UnsubscribeFromDragDropEvents()
 {
     RadDragAndDropManager.RemoveDropQueryHandler(this.AssociatedObject, OnDropQuery);
     RadDragAndDropManager.RemoveDropInfoHandler(this.AssociatedObject, OnDropInfo);
     RadDragAndDropManager.RemoveDragQueryHandler(this.AssociatedObject, OnDragQuery);
     RadDragAndDropManager.RemoveDragInfoHandler(this.AssociatedObject, OnDragInfo);
 }
Example #2
0
 private void InitializeRowDragAndDrop(GridViewRow row)
 {
     if (row == null)
         return;
     row.SetValue(RadDragAndDropManager.AllowDragProperty, true);
     row.SetValue(RadDragAndDropManager.AllowDropProperty, true);
     RadDragAndDropManager.RemoveDropQueryHandler(row, OnGridViewRowDropQuery);
     RadDragAndDropManager.AddDropQueryHandler(row, OnGridViewRowDropQuery);
 }