Approved
Last Updated: 22 Jun 2018 11:17 by Jasper
ADMIN
Rosy Topchiyska
Created on: 22 Jun 2016 13:49
Category: UI for UWP
Type: Feature Request
2
Grid Filter UI: Allow the user to change the initially selected filter operator.
There is no way to change the selected filter operator in the Grid Filter UI. Please extend the API to allow this.
2 comments
Jasper
Posted on: 04 Oct 2016 05:16
Thay doesnt seem tot change the default operator selected in the ui though
Joshua
Posted on: 03 Oct 2016 21:05
YourMethodName (string propertyName, string keyword)
        {
            var descriptorcount = radGridProductInfoListView.FilterDescriptors.Count;
            if (descriptorcount > 0)
            {
                for (int i = 0; i < descriptorcount; i++)
                {
                    radGridProductInfoListView.FilterDescriptors.RemoveAt(i);
                }
            }

        FilterProductInfo = new TextFilterDescriptor();
		
        FilterProductInfo.IsCaseSensitive = false;
        FilterProductInfo.Operator = TextOperator.Contains;
        FilterProductInfo.PropertyName = propertyName;
        FilterProductInfo.Value = keyword.Trim();
		
        radGridProductInfoListView.FilterDescriptors.Add(FilterProductInfo);
        }

That's how I did mine. Needs to create new instance of TextFilterDescriptor because the grid will treat the new filter as AND.