11 Answers, 1 is accepted
Currently, the 'drag and drop' functionality is available only for columns, but not for rows. We will consider implementing such feature in one of our next versions. However, I cannot give you a time frame when it will be addressed.
If you have additional questions, feel free to contact me.
Regards,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for contacting us. Unfortunately the answer to your question is still no. We do not think that this feature is really appropriate in bound mode, but it seem reasonable in unbound mode.
Best wishes,
Nick
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Question: I am assuming that bound grids still do not have the ability to support Row level drag and drop operations. Why? Why would you make any distinction? I bind to BindingLists, I move my data around that way. If the grid can edit data bound to a binding list then why can't it also move rows and if not move the rows, tell me to move the rows? This is silly.
Having said that, I'm hoping you will respond and say "hey, we support that because it is something that is really usable". If you don't do you have any ideas how I can make the grid do this anyway?
I won't tell you how much time I've wasted on this one ;)
Oh, using the most recent version!
We are constantly improving the drag and drop functionality. In the lastest version we improved the feature by enabling the drag operation from RadGridView to another RadGridView or to other controls.
An issue appears when the drag and drop operation is in the same grid in bound mode and it depends on the external data source implementation. For example, when the RadGridView control is bound to a DataTable the Move and Insert operations are disabled. Currently, we are working on implementing support for move and reorder operations in the context of more data sources, and this feature should be tested in more situations. We hope that we will be able to provide a good solution regarding the desired functionality in one of our next releases. Still, because of the complex nature of the issue, I am not able to provide you with a specific time frame.
Regards,Julian Benkov
the Telerik team
I'm also using an unsorted BindingList, where the user organizes (dare not say "sorts") rows into a preferred order. I'm currently using a navigator with buttons added for moving the selected row up and down, but with a couple hundred rows this becomes very painful for the user who may want to move a number of items from the bottom to the top.
To get around the current limitation I'm going to follow this paradigm
- User does select/multi-select
- They click a "Move" button
- The selection is recorded and the button Text changed to "Here"
- They click another row in the grid to reset CurrentRow
- They click the Here button
- The code then removes all originally select rows and inserts them at the new CurrentRow, being careful about a shifting index
The "Move" button will not be active if the grid is filtered or sorted for display (they aren't allowed to Save a sorted list either because that wouldn't make sense in the context of the data).
That's kinda tacky. Does anyone have a more elegant, manually implemented solution until Telerik comes up with something else?
Quick EDIT: What about giving the user a button to convert the grid from bound to unbound, let them do their row manipulation, then repopulating the original data source with the newly ordered items, and re-binding the grid? I'll look into this...
Thanks!
Currently, we are working on implementing support for move and reorder operations in the context of more data sources. We hope that we will be able to provide a good solution regarding the desired functionality in one of our future releases. Still, because of the complex nature of the issue, I am not able to provide you with a specific time frame.
The solution with switching bound and unbound mode will have a performance impact depending on the number of rows attached to the RadGridView control. A more suitable solution is to use RadGridView in unbound mode and in every GridViewRowInfo.Tag property add a reference to data bound item. Then you need to handle all synchronization manually by using the RadGridView events and the events of your binding source or binding list object.
I hope this information is helpful.
Julian Benkov
the Telerik team
I agree with others - this would be very useful.
John
You can use this KB article to implement manually this functionality in your application. A feature request to support drag & drop operation in bound mode in RadGridView is already available in our Public issue Tracking System. Please follow this link to add your vote and also subscribe to its status updates. We will do our best to address the issue in one of next our releases.
Thank you for your time and cooperation.
Greetings,
Julian Benkov
the Telerik team
Thank you for writing.
The current item page is located here. The item is already completed and we have an article in our documentation which explains how this functionality can be achieved (it is available in the items page also): Drag and Drop.
Do not hesitate to contact us if you have other questions.
Dimitar
Telerik