Ability to take over the default sort and do a custom sort on the grid. This will be really helpful for formatted columns that requires a separate sort logic.
17 comments
Imported User
Posted on:08 Aug 2016 14:24
when you define sort.compare and you want to filter by column template is work really slow cause you need to find the template cause the function compare get just 2 arguments of 2 values' so you must find the template and manage it for each column is different way
ADMIN
Telerik Admin
Posted on:30 Jun 2014 12:47
If you implemented a solution which differs from these proposed here, feel free to submit it in the comments section, Dan.
Imported User
Posted on:27 Jun 2014 15:44
I have the code written for this and would like to submit it
ADMIN
Telerik Admin
Posted on:18 Apr 2014 12:54
This is supported via the sortable.compare attribute (http://docs.telerik.com/kendo-ui/api/web/grid#configuration-columns.sortable.compare) for grid columns, where you can hook your custom comparer/logic for sorting to be executed.
@Thomas - request regarding custom grouping should be posted separately.
@Remco - from the sortable.compare function you may consider passing the custom sort field name to the data source transport. Then trigger the read event of the data source to refresh the grid. Hope this is applicable.
Imported User
Posted on:12 Apr 2014 10:56
What about custom server-sorting? I was hoping to be able to display one field in a column but when sorting that column it uses a different field to sort. This custom sort field needs to be passed to the datasource transport read operation instead of the display field.
Thomas
Posted on:05 Mar 2014 13:15
I think that custom grouping should be supported in addition to custom sorting. For example on a date / time field, someone should be able to group on today, yesterday, last week etc.
Malcolm
Posted on:26 Jun 2013 23:35
We need to sort numbers of varying lengths and padding is not possible. It is not acceptable when an ascending sort gives the following order!
2083110
23456789
3450
3993
87654321
Brian
Posted on:18 Apr 2013 17:38
I have some properties that have both value (enum) and text properties. The text property is needed, since using an enum value in a group header template (e.g.) will display the numeric and not the ToString() value. Even if the ToString() value were used, the lack of spaces in enum.ToString() means that there needs to be a display property as well. I need to display the text property and sort by the value property.
John
Posted on:28 Mar 2013 13:41
This is a huge limitation of the product and makes it not usable for us.
Michael
Posted on:31 Jan 2013 22:05
Not being able to sort with case insensitivity is really REALLY lame...
Imported User
Posted on:19 Oct 2012 16:31
We have a need to be able to sort by day of week, but chronologically not alphabetically.
I agree that a lot of issues could be solved if you can specify a sort function for the column.
Alexander
Posted on:15 Oct 2012 17:02
In addition certain fields (like an IP address) may need some special case handling. A "sort:" function in the column array would be great.
Alexander
Posted on:28 Aug 2012 14:08
I agree, the somewhat arbitrary decision to sort a-z after A-Z, with no way to override, is problematic.
Guido
Posted on:22 Aug 2012 22:21
Taking in a custom sort function when you define the column seems like the way to go
Rik
Posted on:21 Aug 2012 18:44
We desperately need case-insensitive sorting of strings in grid, as well as, allowing other custom sort logic (custom Comparer?).
Christopher
Posted on:21 Aug 2012 17:48
Seems like a grid should be able to sort A, B, a, b properly...
Imported User
Posted on:20 Aug 2012 10:08
I have a similar requirement where I need to override the default sorting and display the rows matching specific text always on the top. The sorting in ascending or descending order will apply on the rest of the rows.
Please suggest a way to achieve this, Is it going to be possible?