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

RadComboBox sorting

5 Answers 149 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Von
Top achievements
Rank 1
Von asked on 26 Mar 2010, 03:11 PM
This may be an easy question but I couldn't get the combobox to sort by Text. I already set my combobox to sort in ascending but it still sorts by "Id". The datasource is an IList.

5 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 26 Mar 2010, 03:22 PM
Hi Von,

You can use the SortItems method by passing it an implementation of the IComparer interface - the method will sort the Items using the specified Comparer.

How are you sorting the Items now?

Kind regards,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Von
Top achievements
Rank 1
answered on 27 Mar 2010, 04:21 AM
I've seen that option. I was just thinking of a much easier way. Also, the description of the Sort property indicates that the ComboBox sorts by the "Text" property. I already tried sorting declaratively using the Sort attribute. As well as assigning the RadComboBoxSort.Ascending value to the Sort property.
0
Simon
Telerik team
answered on 27 Mar 2010, 06:02 PM
Hello Von,

Thank you for the info.

It seems that RadComboBox' SortItems method ignores the value of the Sort property. I logged this bug in our Issue Tracking System and updated your Telerik points for the report.

Please use a custom Comparer (and pass it to the respective SortItems overload) until we fix the issue.

Sincerely yours,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Von
Top achievements
Rank 1
answered on 14 Apr 2010, 01:05 PM
Hello,

I've seen in the latest build that this has not been fixed yet. Is that correct?

Regards,
Voltaire
0
Simon
Telerik team
answered on 16 Apr 2010, 02:59 PM
Hi Von,

No, the issue was not included in the SP release as more important fixes were in the queue.

You can track the status of the issue and/or vote for it here.

Please let me know if you have additional questions.

Sincerely yours,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Von
Top achievements
Rank 1
Answers by
Simon
Telerik team
Von
Top achievements
Rank 1
Share this question
or