Client-Side Alphabetical Sorting

4 posts, 0 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 23 Dec 2010 Link to this post

    Is it possible to sort a RadComboBox's items alphabetically via client-side scripting? I didn't see anything in the API showing this type of functionality.
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 Dec 2010 Link to this post

    Hi digitall,

    RadComboBox does not provide means of sorting its Items on the client side. Please use a sorting algorithm, such as Quicksort, to sort the client-side RadComboBoxItem objects.

    Greetings,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 23 Dec 2010 Link to this post

    Do you have any examples of using something like that for this purpose? I've never heard of that algorithm before.
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 27 Dec 2010 Link to this post

    Hello digitall,

    The Quicksort algorithm is one of the most popular sorting algorithms. I suggest you choose the one that best suits you and use it to sort the RadComboBoxItemCollection by using its API.

    Regards,
    Simon
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top