Configure defaultSort per column
See original GitHub issueOne 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:
- Created 8 years ago
- Reactions:3
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 beparsedAttribute('default-sort')
).If there is a chance of merging, I would create a new pull request which applies on master.
Hi @georgmu, if you create another PR with some unit tests to support the change I’ll be happy to merge…