Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default sorting column and sorting direction while initializing #547

Closed
JosephGu opened this issue Dec 1, 2016 · 4 comments
Closed

Comments

@JosephGu
Copy link

JosephGu commented Dec 1, 2016

Hi team,

I'd like to set a arrow up icon for specified column while initializing,(i.e., We can handle the sorting in the backend service, and just need to set the icons to the specified column)

How could I implement it?

@tdzienniak
Copy link
Contributor

Hey, I've just made PR resolving this issue. I have some questions about this functionality:

  • should setting sort column and direction initially trigger onGridSort callback?
  • or maybe user should provide already sorted data?
  • shoud there be a check that column in sortColumn prop is sortable?

@mgscreativa
Copy link

Hi! In my case I'm using meteor to fetch a paginated list. Triggering onGridSort handler calls a subscription that sorts the data server side then publishes the paginated data back to the client. To get that subscription data I must use createContainer HOC.

In my scenario, it will be just cool to have those props to tweak them in my render function, so after subscription is ready, the render function should get the sort order and column and set that on the ReactDataGrid component because the data got sorted on the server.

Please merge this!

Thanks!

@GlebDolzhikov
Copy link

Why version 3 doesn't contain it? plss merge it

@amanmahajan7
Copy link
Contributor

This feature has been added in #649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants