[Solved] Listbox transfer and re-order

1 Answer 29 Views
ListBox
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
Fit2Page asked on 05 Nov 2026, 08:46 AM

Hi,

 

Is there some explanation how the Listbox is determining Order fields when an item is transferred into the listbox or when the the listbox is re-ordered. I tried to get my head around the logic of that but to no avail. We have a database field for the DataSortField installed.

 

Thanks,

Marc

1 Answer, 1 is accepted

Sort by
0
Vasko
Telerik team
answered on 09 Nov 2026, 06:57 AM

Hello Marc,

By default, when you transfer items between two RadListBox controls, the transferred items are appended to the end of the destination listbox. There is no internal logic that automatically sorts or reorders items during transfer unless you explicitly trigger sorting.

The item order is determined by the sorting settings you configure. If you want the listbox to sort its items, you need to set the Sort property (such as RadListBoxSort.Ascending) and specify the DataSortField property to define which data-bound field is used for sorting (e.g., DataSortField="Name").

Maintaining Sorted Order After Transfers

To keep your items sorted after each transfer, you should handle the Transferred event (server-side) or OnClientTransferred event (client-side) and call the sorting logic. For example, in server-side code:

protected void RadListBox_Transferred(object sender, RadListBoxTransferredEventArgs e)
{
    RadListBox.Sort = RadListBoxSort.Ascending;
    RadListBox.SortItems();
}

This approach ensures that the items are automatically re-sorted based on the field specified in DataSortField after every transfer.

Refer to the following articles for additional information:

Regards,
Vasko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources! 
Tags
ListBox
Asked by
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Vasko
Telerik team
Share this question
or