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

Client-Side Alphabetical Sorting

3 Answers 94 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 23 Dec 2010, 06:21 AM
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.

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 23 Dec 2010, 07:10 AM
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.
0
digitall
Top achievements
Rank 1
answered on 23 Dec 2010, 07:55 PM
Do you have any examples of using something like that for this purpose? I've never heard of that algorithm before.
0
Simon
Telerik team
answered on 27 Dec 2010, 01:04 PM
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.
Tags
ComboBox
Asked by
digitall
Top achievements
Rank 1
Answers by
Simon
Telerik team
digitall
Top achievements
Rank 1
Share this question
or