Print Page | Close Window

Drag Drop within same report control issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15641
Printed Date: 15 November 2024 at 6:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag Drop within same report control issue
Posted By: bartdrew
Subject: Drag Drop within same report control issue
Date Posted: 16 November 2009 at 6:35pm
Hi,
 
We have just upgraded our software to use v13.2.1.
 
All seems to be running well except for dragging and dropping.
 
We have managed to fix most problems except for when we drag and drop a record within the same report control, both any group order gets destroyed and the record dissapears. We can get around the group order by deleted all the group orders and then re-creating them and re-populating (not desirable however) but we need to work around the record dissapearing.
 
Any help would be excellent.
 
We have set .SortedDragDrop = True and are using xtpReportAllowDrop and xtpReportAllowDragMove as our dragdrop parameters.
 
Thanks,
 
Bart



Replies:
Posted By: mdoubson
Date Posted: 17 November 2009 at 9:11am
Need to get upgrade - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar

-------------
Mark Doubson, Ph.D.


Posted By: bartdrew
Date Posted: 17 November 2009 at 4:48pm
Thanks Mark.
 
That works now for the moving of an item within the same grid, but now when we MOVE between grids the original item does not dissapear, but acts as though we are using a COPY function.
 
Thanks,
 
Bart


Posted By: mdoubson
Date Posted: 18 November 2009 at 12:01pm
Try assign xtpReportAllowDragMove only (not xtpReportAllowDrag or xtpReportAllowDragMove | xtpReportAllowDragCopy) case

-------------
Mark Doubson, Ph.D.


Posted By: bartdrew
Date Posted: 18 November 2009 at 4:22pm
that is the only one we have assigned. Here is an grab of the code:
 
cfrecords = .EnableDragDrop("HTH:employees", XtremeReportControl.XTPReportDragDrop.xtpReportAllowDrop Or XtremeReportControl.XTPReportDragDrop.xtpReportAllowDragMove)
 
By the way. We are using VB.net 2005


Posted By: mdoubson
Date Posted: 19 November 2009 at 4:39pm
Please try fresh (today) upgrade - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar

-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 19 November 2009 at 5:04pm
For DD with Parents and Childs - try use flags
    .SortedDragDrop = True
    .UnrestrictedDragDrop = True

-------------
Mark Doubson, Ph.D.


Posted By: bartdrew
Date Posted: 23 November 2009 at 4:50pm
Thanks Mark. I have worked out when we seem to have issues. If I start to drag a row and drop it back into the same control that it is being dragged from, the sort group settings and the drag drop settings tend to get destroyed. I cannot reset the drag drop properties either.
 
If I do not drag an item and drop it back into the same report control, the dragmove seems to work fine.
 
Hope this makes sense as we really need this to work as we have built in drag drop capabilities right through our software.


Posted By: mdoubson
Date Posted: 02 December 2009 at 11:33pm
Can't reproduce - if you have report control unsorted and drag row and drop it back to same place - no sort change happened

-------------
Mark Doubson, Ph.D.


Posted By: bartdrew
Date Posted: 08 December 2009 at 11:12pm
It only seems to happen when I have added a grouping. The grouping gets destroyed and the drop drop setting to move, not copy, also gets destroyed so then it will copy instead of move. I cannot reset the property either back to cut. What else do you need from me to sort this out as this is killing our software. Do you want me to send you the code?


Posted By: mdoubson
Date Posted: 17 December 2009 at 2:23pm
Sure please attach some prototype for your case

-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net