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

[Solved] Reorder grid records/rows without drag and drop

2 Answers 151 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 04 Jun 2009, 12:05 AM
Do you have any samples where you reorder grid records/rows without drag and drop?  I need this to work on touch screen cell phones (like iPhone) and all desktop browsers.  I ideally want it to be done client-side only via an up and down arrow in each row (except first and last would have only one arrow each) and then click a Save (ideally support Cancel also) button at the end to submit the changes to server.  I haven't found any samples that do this.  Supporting drag and drop at the same time would be even better for devices that support it.  If there aren't any samples, any ideas as to how to implement this best?  As a developer library, I don't think you should ever fully expect drag and drop and there should always be an old fashioned way to do the same thing.  Mobile phone Internet should keep becoming hugely popular, and I would think most developers won't rely on drag and drop anything.

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 09 Jun 2009, 07:47 AM
Hello Jason,

I think that you can use the sample web site from the code library thread pointed below as a starting point for your implementation:

http://www.telerik.com/community/code-library/aspnet-ajax/grid/dual-listbox-functionality.aspx

It illustrates how to transfer items between two grids using arrow buttons. Similar approach can be utilized to reorder the rows within the same grid.

Additionally, you may be happy to know that for the Q2 2009 release (expected in the beginning of the next month) we will introduce a new control to the suite - RadListBox - which will allow reordering operations out-of-the-box. I encourage you to try it out after a couple of weeks when the Q2 2009 Beta release will be announced.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jason
Top achievements
Rank 1
answered on 09 Aug 2009, 11:34 AM
Looks like ListBox would manage the situation I was interested in.
Tags
Ajax
Asked by
Jason
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jason
Top achievements
Rank 1
Share this question
or