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

Drag and Drop Re-Order / Row Selection

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 04 Dec 2012, 05:53 PM
I have a number of rad grids in my project that go to edit screens on selected index changed, which in turn occurs when a row is clicked with "AllowRowSelect" to true.  No problem so far.
Now I have a requirement to allow the user to re-order the rows using the radgrids drag and drop capability.  I followed the example and this works fine, too.
The problem occurs when I try to combine the two functions in one grid.  The act of clicking to begin the drag process changes the selected index and the redirect to the edit occurs.  I would like to be able to click anywhere on the row other than the drag handles and have it go to edit, but if I click the drag handle, allow the drop and re-ordering.
Can I use the same grid to achieve both purposes?



1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 07 Dec 2012, 11:31 AM
Hello Jim,

Please try to hook onto the selected event and prevent the edit mode from opening if the drag has already been started.

Please give it  a try and let me know about the result. 

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or