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

Reorder rows by drag and drop

1 Answer 46 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 03 Feb 2017, 06:29 PM

Hello,

Currently, I have a RadDataGrid in my UWP app and need the ability to drag and drop rows in any order. I turned on 'CanDrag' but it drags the entire grid instead of one row. 

Also, it'd be great if I could add a column with the drag symbols and only allow users to reorder rows if they use that column to drag the rows. 

Any help is appreciated.

Best,

Nick

<grid:RadDataGrid
            x:Name="PlaylistDataGrid"
            Width="Auto"
            AutoGenerateColumns="False"
            UserGroupMode="Disabled"
            SelectionMode="Single"
            SelectionChanged="OnSelectedPlayChanged"
            SelectionUnit="Cell"
            FrozenColumnCount="6"
            AllowDrop="True"
            CanDrag="True"
            DragStarting="PlaylistDataGrid_OnDragStarting"
            Drop="PlaylistDataGrid_OnDrop">
 </grid:RadDataGrid>

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 08 Feb 2017, 12:13 PM
Hi Nick,

I am afraid reordering items is not supported. Only columns can be reordered.

Best regards,
Ves
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataGrid
Asked by
Nick
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or