private void UnsubscribeFromDragDropEvents() { RadDragAndDropManager.RemoveDropQueryHandler(this.AssociatedObject, OnDropQuery); RadDragAndDropManager.RemoveDropInfoHandler(this.AssociatedObject, OnDropInfo); RadDragAndDropManager.RemoveDragQueryHandler(this.AssociatedObject, OnDragQuery); RadDragAndDropManager.RemoveDragInfoHandler(this.AssociatedObject, OnDragInfo); }
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); }