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

Client Side Sorting not working #1512

Open
subinmathewit opened this issue Aug 10, 2018 · 2 comments
Open

Client Side Sorting not working #1512

subinmathewit opened this issue Aug 10, 2018 · 2 comments

Comments

@subinmathewit
Copy link

@subinmathewit subinmathewit commented Aug 10, 2018

Current behavior
I am using ngx-datatable 11.2.0. I have a column with client side sorting. But that value of the column is determined by an evaluated expression,i..e.. The actual value of that column is some numbers(lat and long) but we have created a custom pipe which will call a google api to calculate the lat and long to convert to location. so the problem is sorting is not working on that column.

Expected behavior
Sorting should work

Reproduction of the problem
I am using ngx-datatable 11.2.0. I have a column with client side sorting. But that value of the column is determined by an evaluated expression,i..e.. The actual value of that column is some numbers(lat and long) but we have created a custom pipe which will call a google api to calculate the lat and long to convert to location. so the problem is sorting is not working on that column.

What is the motivation / use case for changing the behavior?
Issue came in our application which uses ngx-data table

Please tell us about your environment:
Angular5

  • Table version:
    11.2.0

  • Angular version:
    Angular5

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    Chrome

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    TypeScript

@ashokthrymr

This comment has been minimized.

Copy link

@ashokthrymr ashokthrymr commented Nov 12, 2018

I am using Ngx-datatable with server side pagination, i want to do Client side sorting, But when try sort the some columns those are not sorting.stackbliz code

===================
From output if click on column named as (PlanId , TTE,Priority) then it able to sortable,But when click on columns names as (Disp date, Dest, Description) then it not sortble.
Let me know if made any wrong ,
Thanks in Advance.

@ashokthrymr

This comment has been minimized.

Copy link

@ashokthrymr ashokthrymr commented Nov 13, 2018

Got the solution stackoverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.