Skip to content

Provide column.key in orderByCollection for remote sorting #818

Closed
@kkl4261

Description

@kkl4261
  • Request

Allow the user to access column field attribute in Query.orderByCollection[] directly, instead of requiring the user to pass the columns prop manually into the query method.

  • Description

Currently, only column index is provided in the query.orderByCollection, which is insufficient in case a sortKey has to be passed to the API for remote sorting. Requiring the user to manually compute the column field string in query method is quite unintuitive.
In fact this has made the code migration from using orderBy props to orderByCollection props quite difficult.

  • Expectation

Add orderByField:string in the interface OrderByCollection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions