Completed
Last Updated: 10 Feb 2017 13:34 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: DataFilter
Type: Bug Report
1
Please refer to the attached screenshot illustrating what filter expressions and groups are added. As a result, an incorrect RadDataFilter.Expression is produced. RadDataFilter either must always contain a valid expression or indicates somehow when the current expression is not valid. 
Completed
Last Updated: 13 Feb 2018 12:49 by ADMIN
To reproduce: set the DataSource property and enable the sorting for the fields drop-down items:

        Me.RadDataFilter1.SortOrder = SortOrder.Descending
        Me.RadDataFilter1.SortFieldNames = True

When you activate the drop-down editor to select a field name, you will notice that the items are always sorted ascending no matter the SortOrder.

Note: RadDataFilter should allow you to sort the drop-down items in descending order. 

Workaround:

    Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        AddHandler Me.RadDataFilter1.EditorInitialized, AddressOf EditorInitialized
    End Sub

    Private Sub EditorInitialized(sender As Object, e As Telerik.WinControls.UI.TreeNodeEditorInitializedEventArgs)
        Dim editor As TreeViewDropDownListEditor = TryCast(e.Editor, TreeViewDropDownListEditor)
        If editor IsNot Nothing Then
            Dim element As BaseDropDownListEditorElement = TryCast(editor.EditorElement, BaseDropDownListEditorElement)
            element.ListElement.SortStyle = Telerik.WinControls.Enumerations.SortStyle.Descending           
        End If
    End Sub
Completed
Last Updated: 02 Jul 2019 10:04 by ADMIN
Release R3 2019 (LIB 2019.2.708)

When setting the DataFilter.Expression property to an expression that contains negative values, the DataFilter ignores that condition.

Please refer to the attached sample project.

Workaround:
FilterDescriptor fd = new FilterDescriptor("DescriptorItem1", FilterOperator.IsGreaterThan, -5);
this.radDataFilter1.DataFilterElement.AddChildNodes(fd, this.radDataFilter1.DataFilterElement.Nodes[0]);