Devextreme-reactive: The 'onSortingChange' event is not getting triggered from the SortingState plugin when performing server side sorting

Created on 1 Aug 2018  路  3Comments  路  Source: DevExpress/devextreme-reactive

  • [x] I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • [x] React Grid
  • [ ] React Chart
  • [ ] Vue Grid

Environment

  • devextreme-reactive: 1.1.7
Grid question

Most helpful comment

I was able to fix the issue. I was doing

this.changeSorting = sorting => this.changeSorting.bind(this);

That is the reason why it was not able to invoke changeSorting() event.

Thank you for your help!

All 3 comments

Hi,

I researched your scenario and couldn't reproduce the problem on my side.

We don't provide React Grid v1.1.7. The npm view @devexpress/dx-react-grid versions command shows all available versions. So, I'm using React Grid v1.1.2 for research.

First, I checked the scenario with remote sorting. It works as expected. This sample shows this in action. Invoke the following commands to run it in a browser:

npm i
npm run dev

See the README.md file for more details.

Then I tested sorting with server side rendering. I didn't find any problem either. I used this project for testing. I added React Grid to the index.js page and ran it. I should say, here I used React Grid v1.5.1, because React Grid v1.1.2 isn't compatible with the latest version of Materiau-UI that is used it the test project.

I was able to fix the issue. I was doing

this.changeSorting = sorting => this.changeSorting.bind(this);

That is the reason why it was not able to invoke changeSorting() event.

Thank you for your help!

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ProjectaJE picture ProjectaJE  路  3Comments

franklixuefei picture franklixuefei  路  3Comments

bloolizard picture bloolizard  路  3Comments

slava-lu picture slava-lu  路  3Comments

madebymt picture madebymt  路  3Comments