Intersoft.Client.UI.Editors Namespace > UXQueryBuilder Class : CompositeFilter Property |
<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); }
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" /> |
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