in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Custom accept dragged pivot fields

Last post 9/3/2008 4:45 AM by Viatcheslav Vassiliev. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 8/14/2008 8:29 AM

    Custom accept dragged pivot fields

    In PivotGrid field can be dragged and dropped to another area. It can be
    dragged from PivotGrid or from customization form, it can also be dropped on
    customization form.

    Can I have control that will accept dragging pivot field (i.e. I want to
    drag pivot field and drop it on my control)? Using standard way (handle
    DragOver and DragDrop events) does not work.

    Sincerely yours,
    Viatcheslav V. Vassiliev
  • 9/3/2008 1:19 AM In reply to

    Re: Custom accept dragged pivot fields

    Hello Viatcheslav,

    The PivotGrid does not allow you to drag fields outside the control.  This feature can be implemented, if you explicitly initialize drag&drop by calling the PivotGridControl.DoDragDrop method and completely handle drag&drop.  Please see the MSDN Library for sample code.  Please note that you will need to disable the internal drag&drop for fields by deactivating the OptionsCustomization.AllowDrag option.  Another solution is to start your custom drag&drop when the right mouse button is pressed.

    Thanks,
    R&D, .NET Team
    Ivan

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 9/3/2008 4:45 AM In reply to

    Re: Custom accept dragged pivot fields

    Thank you.
     
    I wanted to join my code to dragging field from pivot grid onto customization form, but it seems to be more difficult than I expected.
     
    Sincerely yours,
    Viatcheslav V. Vassiliev
     
    "Ivan N (Developer Express)" сообщил/сообщила в новостях следующее: news:233276@community.devexpress.com...

    Hello Viatcheslav,

    The PivotGrid does not allow you to drag fields outside the control.  This feature can be implemented, if you explicitly initialize drag&drop by calling the PivotGridControl.DoDragDrop method and completely handle drag&drop.  Please see the MSDN Library for sample code.  Please note that you will need to disable the internal drag&drop for fields by deactivating the OptionsCustomization.AllowDrag option.  Another solution is to start your custom drag&drop when the right mouse button is pressed.


    Thanks,
    R&D, .NET Team
    Ivan

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center

    http://community.devexpress.com//forums/p/67956/233276.aspx#233276

Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED