Drag Drop within same report control issue |
Post Reply |
Author | |
bartdrew
Newbie Joined: 16 November 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
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
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Need to get upgrade - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar
|
|
bartdrew
Newbie Joined: 16 November 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Try assign xtpReportAllowDragMove only (not xtpReportAllowDrag or xtpReportAllowDragMove | xtpReportAllowDragCopy) case
|
|
bartdrew
Newbie Joined: 16 November 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Please try fresh (today) upgrade - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta13-2.rar
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
For DD with Parents and Childs - try use flags
.SortedDragDrop = True
.UnrestrictedDragDrop = True |
|
bartdrew
Newbie Joined: 16 November 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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.
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Can't reproduce - if you have report control unsorted and drag row and drop it back to same place - no sort change happened
|
|
bartdrew
Newbie Joined: 16 November 2009 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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?
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Sure please attach some prototype for your case
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |