Reorder rows by drag and drop

2 posts, 0 answers
  1. Nick
    Nick avatar
    1 posts
    Member since:
    Feb 2017

    Posted 03 Feb Link to this post

    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>

  2. Ves
    Admin
    Ves avatar
    2904 posts

    Posted 08 Feb Link to this post

    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
Back to Top