question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure defaultSort per column

See original GitHub issue

One should be able to set the defaultSort on column basis.

I.e. I want to sort dates descending and names ascending by default.

<td data-title="'Name'" sortable="'name'" default-sort-direction="asc"></td>
<td data-title="'Date'" sortable="'date'" default-sort-direction="desc"></td>

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

1reaction
georgmucommented, Sep 22, 2016

Is there a chance that this get merged when the conflicts are resolved?

I manually did the 3 changes of #804 and it works fine (except that parsedAttribute('defaultSort') should be parsedAttribute('default-sort') ).

If there is a chance of merging, I would create a new pull request which applies on master.

0reactions
christianaccacommented, Oct 12, 2016

Hi @georgmu, if you create another PR with some unit tests to support the change I’ll be happy to merge…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring the default Results Table sort order and summary ...
For each sort rule, you can select a different column and determine whether to sort in ascending or descending order. Sorting configuration for...
Read more >
Default Sort Order of Multiple Columns in a custom table
Solved: Can I set the default sort order for multiple columns in a custom table? I want to make it visible to everyone,...
Read more >
Different default sort directions for Columns in Table in React ...
Update What you're actually asking for here (a default sort direction per column) is completely up to your application.
Read more >
Set default sort column - dynamically | Infragistics Forums
I have tried every single overrloaded of SortedColumns.Add() and none of them are working for me. //bind to the data source. this.UltraWebGrid1.
Read more >
default sort direction for columns — DataTables forums
Alphanumeric columns need to sort A-Z when their headers are ... default sort direction for columns ... How can this be set per...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found