Sorting/Filtering complex objects

3 posts, 0 answers
  1. George
    George avatar
    16 posts
    Member since:
    Mar 2012

    Posted 19 Aug 2015 Link to this post

    Is it possible to apply sorting and filtering on complex objects or dynamic columns? My grid has many dynamic columns, and grid does not allow me to sort or filter by their type (datetime, or number). It considers them "string" values.
  2. George
    George avatar
    16 posts
    Member since:
    Mar 2012

    Posted 20 Aug 2015 Link to this post

    Any idea guys?
  3. Kendo UI is VS 2017 Ready
  4. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 21 Aug 2015 Link to this post

    Hi George,

    In order to sort or filter by the type, the type should be defined in the dataSource's schema. If it omitted the Grid will threat values as strings.

    Filtering or sorting on complex objects is not supported at present. It is possible to set the column field configuration option to property of the complex object which will allow the user to sort or filter on that particular field. For example:

    columns: [{ field: "complexObject.fieldName", title: "fieldName" /* etc... */ }]


    I hope this information will help.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top