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

sorting issue

1 Answer 37 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
rashad kabbara
Top achievements
Rank 1
rashad kabbara asked on 03 Jun 2010, 10:03 AM
i have a Combobox with this item template:

'Format Code Block'
<
ItemTemplate

    <table

         <tr

             <td><%# DataBinder.Eval(Container, "Attributes['contact']")%></td

             <td>(<%# DataBinder.Eval(Container, "Attributes['city']")%>)</td

         </tr>

    </table

</ItemTemplate>

 

 

 

is it possible to apply sorting on contact or city in code behind?
ie something like :

1- RadComboBox1.Items.Sort('contact');
2-RadComboBox1.Items.Sort('city');

 

so the 1st sorts the combobox according to contact whlie the 2nd sorts according to city?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2010, 10:52 AM
Hello Rashad,

I have seen a documentation on "Implementing custom sorting" for RadComboBox items. I hope the documentation will help you to get started. Modify the logic according to your need.
Implement custom sorting


-Shinu.
Tags
ComboBox
Asked by
rashad kabbara
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or