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

How to sort by default with a custom function #145

Open
kilofafeure opened this issue Dec 7, 2017 · 0 comments
Open

How to sort by default with a custom function #145

kilofafeure opened this issue Dec 7, 2017 · 0 comments

Comments

@kilofafeure
Copy link

kilofafeure commented Dec 7, 2017

Hi, I'm trying to sort the first time that I load the table with a custom function but I can't achieve it. The custom function works fine, but when I load the table all the columns are disordered. If I put a column that haven't a custom function the first time is well ordered.

  • I've tried to use my custom function into the sortBy param:
    public sortBy = this.sortByTitle ;
  • I' ve tried to put the Title column name into the the sortBy param:
    public sortBy = "Title";
  • I've tried to call my custom function after receive all the data list from the server but doesn't works too.

** My Custom function
private sortByTitle = (a: OperationEnterpriseLawyer_Grouped) => { var strWithAccent = a.Title; var strWithoutAccent: string = _.deburr(strWithAccent).toLowerCase(); return strWithoutAccent; }

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

1 participant