Issue with Combobox column sorting

2 posts, 0 answers
  1. Jaime
    Jaime avatar
    12 posts
    Member since:
    May 2012

    Posted 08 Aug Link to this post

    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.

  2. Georgi Krustev
    Georgi Krustev avatar
    3688 posts

    Posted 11 Aug Link to this post

    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:

    Georgi Krustev
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top