Reorder Items in Grouped ListView

This help topic will provide an overview on how you could enable reordering feature of RadListView control when its items are grouped.

Before proceeding, please check the Reorder Items topic which describes in details reordering functionality of the ListView.

When the items of RadListView are grouped by a certain criteria and the end user drags/starts reordering an item, the dragged item could be added to a different group. Since this depends on the items' relation, in order to handle the scenario, you would need to subscribe to the ListView Reorder Command and manually update the dragged item details. Below you could find a sample implementation.

The ReorderEndedCommandContext gives you access to the:

  • Item: Refers to the data item that is being interacted with.
  • DestinationItem: Refers to the data item that corresponds to the location where the dragged item has been released.
  • Group: Gets the group containing the data item that is being interacted with.
  • DestinationGroup: Refers to the group that corresponds to the location where the dragged item has been released.
  • Placement (of type ItemReorderPlacement): Indicates whether the dragged item should be placed before or after the destination item.

1 RadListView definition with PropertyGroupDescriptor and Reorder command applied:

 <telerikDataControls:RadListView x:Name="listView"
                                     ItemsSource="{Binding Events}" 
                    <Label Text="{Binding Content}" TextColor="#6F6F70" FontSize="Small" />
        <telerikListView:PropertyGroupDescriptor PropertyName="Day"/>
        <telerikListViewCommands:ListViewUserCommand Id="ReorderEnded"
                                                     Command="{Binding ReorderCommand}" />

2 Add the namespaces used:


3 Create a ViewModel class containing a collection of Event objects as well as a Reorder command implementation considering the Events will be grouped according to Day property. Inside the Reorder command you will have access to some useful details through ReorderEndedCommandContext such as:

public class ViewModel
    public ViewModel()
        this.Events = new ObservableCollection<Event>()
            new Event() { Content = "Meeting with John", Day = "Tommorow" },
            new Event() { Content = "This also happens today", Day = "Yesterday" },
            new Event() { Content = "More events today", Day = "Today" },
            new Event() { Content = "Go shopping after 19:00", Day = "Yesterday" },
            new Event() { Content = "Lunch with Sara", Day = "Today" },
            new Event() { Content = "Planning for tommorow", Day = "Today"},
            new Event() { Content = "Free lunch time", Day = "Yesterday" },
            new Event() { Content = "Kids Party", Day = "Tommorow" },
            new Event() { Content = "Party", Day = "Tommorow" }
        this.ReorderCommand = new Command<ReorderEndedCommandContext>(this.Reorder);
    public ObservableCollection<Event> Events { get; set; }
    public Command<ReorderEndedCommandContext> ReorderCommand { get; }
    private void Reorder(ReorderEndedCommandContext context)
        var sourceItem = (Event)context.Item;


        var destinationItem = (Event)context.DestinationItem;
        var destinationGroup = context.DestinationGroup;
        var destinationIndex = this.Events.IndexOf(destinationItem);

        if (context.Placement == ItemReorderPlacement.After)

        sourceItem.Day = (string)destinationGroup.Key;
        this.Events.Insert(destinationIndex, sourceItem);

4 And the business model:

public class Event : NotifyPropertyChangedBase
    public string content;
    public string day;
    public string category;

    public string Content
        get { return this.content; }
        set { this.UpdateValue(ref this.content, value); }

    public string Day
        get { return; }
        set { this.UpdateValue(ref, value); }

    public string Category
        get { return this.category; }
        set { this.UpdateValue(ref this.category, value); }


You could check the result on the image below:

ListView Reorder in grouped scenario

See Also

In this article
Not finding the help you need?