This is a migrated thread and some comments may be shown as answers.

Is it possible the reorder the rows in radgridview ?

11 Answers 357 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ragupathi
Top achievements
Rank 1
Ragupathi asked on 10 Sep 2008, 02:33 PM
Hi,
I would like to reorder the rows in grid view as we are reordering the columns in radgridview. For ex. I should be able to drag and drop the 10th row to 2nd row like. Is that possible ?

Thank you in Advance
Raghu

11 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 12 Sep 2008, 04:14 PM
Hello Ragupathi,

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.
0
jc wong
Top achievements
Rank 1
answered on 13 Nov 2009, 08:22 AM
Hi,

Sorry to repeat same question. Is there any chance that SP2 2009 support this drag-drop row reordering feature?

If there isn't, any advice on the workaround method?

Thanks,
JC
0
Nick
Telerik team
answered on 24 Nov 2009, 02:25 PM
Hello jc wong,

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.
0
Dan
Top achievements
Rank 1
answered on 16 Mar 2012, 01:49 AM
Hi, just wasted a ton of time trying to figure out why your demo grids can drag and drop rows but my Bound grid cannot.

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!
0
Julian Benkov
Telerik team
answered on 20 Mar 2012, 04:22 PM
Hello Dan,

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
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
TonyG
Top achievements
Rank 1
answered on 23 Apr 2012, 04:02 PM
Just adding a "me too" here to a recently updated thread. People have been asking about drag-n-drop for RadGridView for years. Even though Telerik can't think of too many good applications for this it seems apparent that lots of other people can, no?

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
  1. User does select/multi-select
  2. They click a "Move" button
  3. The selection is recorded and the button Text changed to "Here"
  4. They click another row in the grid to reset CurrentRow
  5. They click the Here button
  6. 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!

0
Julian Benkov
Telerik team
answered on 26 Apr 2012, 03:05 PM
Hi Tony,

Thank you for writing.

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.

Kind regards,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
JohnO
Top achievements
Rank 1
answered on 27 Mar 2013, 04:25 PM
Is there any update to this information?  Is Drag & Drop supported for a data bound gridview with 2013.1.220?

I agree with others - this would be very useful.

John
0
Julian Benkov
Telerik team
answered on 28 Mar 2013, 01:58 PM
Hi 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
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
dnguyen
Top achievements
Rank 1
answered on 23 Jul 2014, 09:43 AM
Hello I would like to know if there is any update to this information?  Is Drag & Drop supported for a data bound gridview with 2014.2.617.40?
0
Dimitar
Telerik team
answered on 23 Jul 2014, 10:35 AM
Hi Duy,

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.
 
Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Ragupathi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
jc wong
Top achievements
Rank 1
Nick
Telerik team
Dan
Top achievements
Rank 1
Julian Benkov
Telerik team
TonyG
Top achievements
Rank 1
JohnO
Top achievements
Rank 1
dnguyen
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or