Completed
Last Updated: 12 Dec 2016 13:02 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 13 Aug 2015 14:11
Category: GridView
Type: Feature Request
1
ADD. RadGridView - add AllowNaturalSort functionality
The AllowNaturalSort  property should indicate whether the no-sort state when changing sort order will be allowed.

Workaround:

Private Sub SortChanging(sender As Object, e As Telerik.WinControls.UI.GridViewCollectionChangingEventArgs)
    If e.Action = NotifyCollectionChangedAction.Remove AndAlso e.OldValue = ListSortDirection.Descending Then
        e.Cancel = True
        For Each sd As SortDescriptor In Me.RadGridView1.SortDescriptors
            If sd.PropertyName = e.PropertyName Then
                sd.Direction = ListSortDirection.Ascending
            End If
        Next
    End If
End Sub
1 comment
ADMIN
Ralitsa
Posted on: 12 Dec 2016 13:02
In order to prevent a natural sorting, you need to set the columns`s AllowNaturalSort property to false. The improvement will be available with our next release - Telerik UI for WinForms R1 2017.