Exemplo n.º 1
0
 protected virtual void OnBeginningDrag(BeginningDragEventArgs args)
 {
     if (this.BeginningDrag != null)
     {
         this.BeginningDrag(this, args);
     }
 }
Exemplo n.º 2
0
        private bool InitiateDrag(RadGridView gridView, DragDropQueryEventArgs dragDropArgs)
        {
            var itemsToDrag = this.GetItemsToReorder(gridView);
            var eventArgs   = new BeginningDragEventArgs(gridView, itemsToDrag);

            this.OnBeginningDrag(eventArgs);
            if (!eventArgs.Cancel)
            {
                dragDropArgs.Options.Payload = itemsToDrag;
                this.OnDragStarted(new DragStartedEventArgs(gridView, itemsToDrag));
            }
            return(!eventArgs.Cancel);
        }