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

Sort by Checked Item

3 Answers 15 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 26 Feb 2013, 04:02 PM
Is there a way to sort the contents of RadListBox using checkboxes by the checked items. I'd like to display the checked items at the top of the list.

Thanks. All help is appreciated.

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 27 Feb 2013, 09:46 AM
Hello Tim,

This can easily be achieved with the following line:
RadListBox1.Items.Sort(i => !i.Checked);

 

Kind regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Pedro
Top achievements
Rank 1
answered on 30 Nov 2016, 11:29 AM
This method with lambda expression parameter is available in which version?
0
Bozhidar
Telerik team
answered on 01 Dec 2016, 08:13 AM
Hello,

It's available in every version after Q1 2013.

Regards,
Bozhidar
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
ListBox
Asked by
Tim
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Pedro
Top achievements
Rank 1
Share this question
or