Intersoft ClientUI Documentation
CompositeFilter Property



Gets or sets the predefined composite filter which will be rendered on first load of the UXQueryBuilder control.
Syntax
<CategoryAttribute("Common Properties")>
Public Property CompositeFilter As Object
Dim instance As UXQueryBuilder
Dim value As Object
 
instance.CompositeFilter = value
 
value = instance.CompositeFilter
[CategoryAttribute("Common Properties")]
public object CompositeFilter {get; set;}
[CategoryAttribute("Common Properties")]
public:
property Object^ CompositeFilter {
   Object^ get();
   void set (    Object^ value);
}
Remarks

Predefined Composite Filter

UXQueryBuilder enables predefined composite filter to take effect upon first load by simply creating a composite filter and bind the composite filter to the CompositeFilter property.

C#
Copy Code
CompositeFilterDescriptor composite = new CompositeFilterDescriptor();
composite.FilterDescriptors.Add(new FilterDescriptor() { PropertyName = "OrderDate", Value = new DateTime(1996, 1, 1), Operator = FilterOperator.IsGreaterThanOrEqualTo });
composite.FilterDescriptors.Add(new FilterDescriptor() { PropertyName = "OrderDate", Value = new DateTime(1997, 1, 1), Operator = FilterOperator.IsLessThanOrEqualTo });

this.PredefinedCompositeFilterDescriptor = composite;

this.QueryDescriptor.FilterDescriptors.Add(composite);                
XAML
Copy Code
<Intersoft:UXQueryBuilder ObjectType="{Binding ObjectType}"
        CompositeFilter="{Binding PredefinedCompositeFilterDescriptor}"
        FilterDescriptors="{Binding QueryDescriptor.FilterDescriptors, Mode=TwoWay}" QueryOperation="Server" />
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXQueryBuilder Class
UXQueryBuilder Members

Send Feedback