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

Comparator not responding in ag-grid #3658

Closed
Achisingh opened this issue Feb 10, 2020 · 2 comments
Closed

Comparator not responding in ag-grid #3658

Achisingh opened this issue Feb 10, 2020 · 2 comments

Comments

@Achisingh
Copy link

Comparator does not work in TypeScript. Tired using a simple console log, but no response. I am raising this as a bug.

userCols = [
{ headerName: 'First Name', field: 'firstName', width: 125, sortable: true, filter: true, resizable: true,
comparator: (valueA, valueB) => console.log(valueA, valueB) }];

@shuheb
Copy link

shuheb commented Feb 11, 2020

Hi,

We don't see this as a bug - this is expected behavior. The code in the comparator is executed when you sort the column. Please click the column header and the console will display the results of the individual comparisons of the cell values.

{headerName: "First Name", field: "firstName", comparator: (valueA, valueB) => {

    console.log(valueA, valueB)}
},  

ag-grid staff does not provide support through github. If you have any further questions and are a customer please contact us through our official support channel.

Note that this issue has been flagged as managed-by-the-community, we also recommend you to check stackoverflow, note that if there is no activity on this issue after a while we will close it.

Thanks

@Achisingh
Copy link
Author

Hi,

I was talking about when the column is sorted. It still doesn't work. Anyways if you don't provide support through GitHub, it's alright.

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

No branches or pull requests

2 participants