Skip to content

Conversation

@methyl
Copy link
Contributor

@methyl methyl commented Jan 15, 2018

In order to be able to display current sort order, we need sorting information in header renderer.

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

onSort / sortDirection props are not passed to the custom headerRenderer, hence making it impossible to display sorting information

What is the new behavior?

Pass sorting props to headerRenderer

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

In order to be able to display current sort order, we need sorting information in header renderer.
@rlreamy
Copy link
Contributor

rlreamy commented Jan 15, 2018

+1 - I have been looking for this exact functionality for the past several hours.

@methyl
Copy link
Contributor Author

methyl commented Jan 17, 2018

@rlreamy You can use https://www.npmjs.com/package/@lucjansuski/react-data-grid before it gets merged

@malonecj malonecj merged commit 9d1ca0f into Comcast:master Jan 22, 2018
malonecj added a commit that referenced this pull request Jan 22, 2018
malonecj added a commit that referenced this pull request Jan 22, 2018
* Revert "Version bump to 3.0.4 [ci skip]"

This reverts commit 76edcb1.

* Revert "Pass sort properties to custom header renderer (#1080)"

This reverts commit 9d1ca0f.
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

Successfully merging this pull request may close these issues.

3 participants