This question is locked. New answers and comments are not allowed.
mathieu ferlay
Top achievements
Rank 1
mathieu ferlay
asked on 10 Aug 2010, 07:42 AM
Hello,
I try to find a system in order to put a drag and drop between two radgridview but for the moment, I don't manage to find it. So my first question is, it is possible? and my second is, if yes, can I drag column's Headers too?
regards,
Mat
I try to find a system in order to put a drag and drop between two radgridview but for the moment, I don't manage to find it. So my first question is, it is possible? and my second is, if yes, can I drag column's Headers too?
regards,
Mat
5 Answers, 1 is accepted
0
Hello mathieu ferlay,
I have prepared sample application demonstrating how to drag rows between RadGridViews. About the second request - currently the Header cells (that represents the respective columns) are dragged when user wants to reorder columns or group by them. Could you share with us what will be the desired behavior in this matter?
All the best,
Tsvyatko
the Telerik team
I have prepared sample application demonstrating how to drag rows between RadGridViews. About the second request - currently the Header cells (that represents the respective columns) are dragged when user wants to reorder columns or group by them. Could you share with us what will be the desired behavior in this matter?
All the best,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
mathieu ferlay
Top achievements
Rank 1
answered on 10 Aug 2010, 09:29 AM
thx for your so fast answer. Actually, I want to create a little grid from a bigger. So, I just want to drag headers from the first to the second in order to have the same column's header in it.
0
Accepted
Hello mathieu ferlay,
Please check the attached project for silverlight as well.
Sincerely yours,
Tsvyatko
the Telerik team
Please check the attached project for silverlight as well.
Sincerely yours,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Jan Marek
Top achievements
Rank 1
answered on 10 Jan 2011, 11:03 PM
Hi, i'm new in SL and telerik controls:) I need almost the same functionality like mathieu, drag one row in one RadGridView and drop in the second RadGridView. I have two RadGridView, one is full of data and second is empty and I need move row from first RadGridView, and be able drop in the second RadGridView somewhere into place. I tried Attached files sl-drag.zip with sample code, but this work different. In sample code must be row put in RadGridView between rows, but if is my RadGridView empty? Could you help me, what I'll must change? I changed OnDropInfo like this, but args.Options.Status is never complete, so I must change something more, but I dont know what. Thank you very much for help.
private void OnDropInfo(object sender, DragDropEventArgs args) { if (args.Options.Source is GridViewRow) { var destinationGrid = args.GetElement<RadGridView>(args.Options.CurrentDragPoint); if (args.Options.Status == DragStatus.DropComplete && destinationGrid != null) { var destinationSource = destinationGrid.ItemsSource as IList; if (destinationSource != null) { destinationSource.Add(args.Options.Payload); } } } }0
Hello mathieu ferlay,
The modification made is almost everything needed to achieve the desired scenario. The one missing piece is setting RadDragAndDropManager.AllowDrop to the GridView. Currently, with no rows in the destination grid, there is no suitable dropable area to trigger DropQuery/DropInfo.
Please, check the modified project and let me know if you have any further questions.
Greetings,
Tsvyatko
the Telerik team
The modification made is almost everything needed to achieve the desired scenario. The one missing piece is setting RadDragAndDropManager.AllowDrop to the GridView. Currently, with no rows in the destination grid, there is no suitable dropable area to trigger DropQuery/DropInfo.
Please, check the modified project and let me know if you have any further questions.
Greetings,
Tsvyatko
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>