10 Answers, 1 is accepted
You may refer to this blog post. It illustrates a project that implements row reordering in RadGridView and displays a drop position indicator. Please, let me know whether this approach, meets your requirements.
the Telerik team
I have prepared sample application, that provide same functionality as the one in the Silverlight article mentioned. Please, have a look at the attachment and let us know if you have any further questions.Best wishes,
the Telerik team
A more up to date implementation of the demo you can look into the RowReorder WPF / Silverlight example. In addition, you can check the DragDropManager documentation for more details on how to use it.
I hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Boris, thanks for the update! One question though, in the deprecated WPF example, it shows a nice line as a drop position feedback tool instead of this weird tooltip debug message.
Is this behavior (having a nice line between the rows where you will drop the dragged item) still possible in the current iteration of telerik's (silverlight) radgridview?
Radtreeview does it natively without much hassle, and I very much prefer the clean drop line over the tooltip with text.
I believe the Drag and Drop Within RadGridView demo from our SDK Samples Browser the desired behavior. Of course, you are free to modify that to suit your requirements.
Could you please have a look at it and let me know if it works for you?
Thank you for your answer. Unfortunately that example also uses the descriptive tooltip "Dragging Item before/after rowitem" instead of a "droppreviewline"
To clarify please see the two attached files from your demo site.
The behavior I'd like to enable or implement is the IsDropPreviewLineEnabled functionality, but on a gridview.
So to just have a thin colored line to show the position where the item will inserted after a drop instead of a tooltip describing where it will drop.
So, of these 2 screenshots, the one shown in "RadTreeView_TreeViewDragAndDrop_060" is the one I want..
But then on a radgridview instead of a treeview.
Any idea if at all possible?
This is indeed possible, using the aforementioned SDK example. The only modification you need to make is to remove the following lines from the OnDragInitialize method of the RowReorderBehavior:
You could also modify the drop position feedback presenter in the CreateDefaultDropPositionFeedback method and change the created Ellipse's Fill color to White to exactly match the RadTreeView implementation.
I hope this produces the desired behavior.