Change the Default Selected Filter Operators

To change the default selected filter operators, you have to attach to the FilterOperatorsLoading event of RadGridView and set them in the event arguments. When in Filter Row mode you only need to set the first operator.

private void OnRadGridViewFilterOperatorsLoading(object sender, Telerik.Windows.Controls.GridView.FilterOperatorsLoadingEventArgs e) 
{ 
    if (e.Column.UniqueName == "HireDate") 
    { 
        e.DefaultOperator1 = Telerik.Windows.Data.FilterOperator.IsGreaterThan; 
        e.DefaultOperator2 = Telerik.Windows.Data.FilterOperator.IsLessThan; 
    } 
} 
Private Sub OnRadGridViewFilterOperatorsLoading(sender As Object, e As Telerik.Windows.Controls.GridView.FilterOperatorsLoadingEventArgs) 
    If e.Column.UniqueName = "HireDate" Then 
        e.DefaultOperator1 = Telerik.Windows.Data.FilterOperator.IsGreaterThan 
        e.DefaultOperator2 = Telerik.Windows.Data.FilterOperator.IsLessThan 
    End If 
End Sub 

Please note that you cannot reorder the available operators.

In this article
Not finding the help you need? Improve this article