Example documentation - best practices to extract column for server side sorting?
See original GitHub issueHello, fantastic library, just had a question on best practices in sorting via LINQ based on the IDataTablesRequest
request
For example, I know I can extract the given column for which the sort has been applied on the client side by:
var sortColumn = request.Columns.Where(c => c.Sort != null).FirstOrDefault();
From there, I have access to the field name as a string and can check the string to conditionally create a where clause, but is there a better way?
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Server-Side and Client-Side Sorting and Filtering
If there are not many records in a table, they are all shown in the result grid after retrieving data from a table...
Read more >REST API Design: Filtering, Sorting, and Pagination
However, there is no standard or official API design guidelines. ... May require more work on server side to parse and group the...
Read more >Tutorial: Add sorting, filtering, and paging with the Entity ...
Add column sort links. To add sorting to the Student Index page, you'll change the Index method of the Student controller and add...
Read more >Server-Side Paging and Sorting for a Microflow Data Source
Double-click the Create object activity. Click New to set the value for another member of the Paging entity. Select Member > IsSortable (Boolean) ......
Read more >Angular Material Data Table: A Complete Example
A complete example of an Angular Material Data Table with server-side pagination, sorting, filtering, as well as a loading indicator.
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
Hi! inspired by this stackoverflow answer: http://stackoverflow.com/a/36303246/726868
I create this extension method for IQueryable OrderBy
So you can active your goals like this:
bye
It’s so funny. I was searching for the same solution now… and i found the answer of myself ahaha We live in the loop!