Sort by Checked Item

2 posts, 0 answers
  1. Tim
    Tim avatar
    12 posts
    Member since:
    Nov 2012

    Posted 26 Feb 2013 Link to this post

    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.
  2. Bozhidar
    Bozhidar avatar
    1096 posts

    Posted 27 Feb 2013 Link to this post

    Hello Tim,

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


    Kind regards,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top