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

Issue with Combobox column sorting

1 Answer 164 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Software Procurement
Top achievements
Rank 1
Software Procurement asked on 08 Aug 2016, 08:47 PM

This is regarding an issue that we are facing with combo box column sorting , if we bind a string fields as “DatavalueField “ and do sorting on Combo box column Kendo grid binding is braking. But this works if we bind numeric field with DatavalueField and it sorts with this field. But in our case we need to sort by the field bound to DataTextField (which is in the UI). Please suggest possible solution or work around to address this issue.

Looking forward to hear from you soon - thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 11 Aug 2016, 07:07 AM
Hеllo Jaime,

Based on the given details, I believe that you are discussing Grid sorting capability. In this case, the ComboBox could be an editor in the column, but it does not affect the sorting behavior of the grid, as it is based on the underlying DataSource component.

If this is the case, then you most probably will need to sort by complex objects. Thus you will be able to edit the 'dataValueField' model property using the ComboBox and still sort by the corresponding 'dataTextField' model field. I would suggest you check the following forum post that discusses the same scenario:

http://www.telerik.com/forums/sorting-filtering-complex-objects

Regards,
Georgi Krustev
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
ComboBox
Asked by
Software Procurement
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or