private void OnRadGridViewFilterOperatorsLoading(object sender, Telerik.Windows.Controls.GridView.FilterOperatorsLoadingEventArgs e) { //e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsEqualTo); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNotEqualTo); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsGreaterThanOrEqualTo); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsLessThanOrEqualTo); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNull); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNotNull); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.DoesNotContain); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.EndsWith); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsContainedIn); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsEmpty); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNotEmpty); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsGreaterThan); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsLessThan); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNotContainedIn); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.StartsWith); e.DefaultOperator1 = Telerik.Windows.Data.FilterOperator.Contains; if (e.Column.UniqueName != "SubmitDate") { e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsEqualTo); } }
private void RadGridView_FilterOperatorsLoading(object sender, Telerik.Windows.Controls.GridView.FilterOperatorsLoadingEventArgs e) { if (e.AvailableOperators.Contains(FilterOperator.Contains)) { e.DefaultOperator1 = FilterOperator.Contains; } }
private void GLRadGridView_FilterOperatorsLoading(object sender, Telerik.Windows.Controls.GridView.FilterOperatorsLoadingEventArgs e) { e.DefaultOperator1 = Telerik.Windows.Data.FilterOperator.IsEqualTo; e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsContainedIn); e.AvailableOperators.Remove(Telerik.Windows.Data.FilterOperator.IsNotContainedIn); }