'Declaration Public Property FilterUIType As FilterUIType
public FilterUIType FilterUIType {get; set;}
FilterUIType property specifies the type of user interface that the data presenter will use to let the user filter records. See enum for more information.
NOTE: To actually enable the filtering functionality, set the property on the FieldSettings of the FieldLayout (FieldSettings), or the DataPresenter (FieldSettings or individual Field (Settings). Setting AllowRecordFiltering is necessary for FilterUIType property to have any effect.
To actually specify filter conditions in code to pre-filter the records, use the FieldLayout's RecordFilters or the RecordManager's RecordManager.RecordFilters depending on the RecordFilterScope property setting. By default FieldLayout's RecordFilters are used.
To check if a data record is filtered out, use the record's DataRecord.IsFilteredOut property. GroupByRecord also exposes GroupByRecord.IsFilteredOut property, which returns true if all of its descendant data records are filtered out.
Imports Infragistics.Windows Imports Infragistics.Windows.Editors Imports Infragistics.Windows.DataPresenter Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) ' Set AllowRecordFiltering to enable record filter UI. _dp.FieldSettings.AllowRecordFiltering = True ' Use FilterUIType to specify what type of UI to use: Filter icons ' in the field labels or the filter-record. _dp.FieldLayoutSettings.FilterUIType = FilterUIType.FilterRecord ' If using filter-record, use FilterRecordLocation to control the location of ' the filter record. _dp.FieldLayoutSettings.FilterRecordLocation = FilterRecordLocation.OnTopFixed End Sub
using Infragistics.Windows; using Infragistics.Windows.Editors; using Infragistics.Windows.DataPresenter; public void Window1_Loaded( object sender, RoutedEventArgs e ) { // Set AllowRecordFiltering to enable record filter UI. _dp.FieldSettings.AllowRecordFiltering = true; // Use FilterUIType to specify what type of UI to use: Filter icons // in the field labels or the filter-record. _dp.FieldLayoutSettings.FilterUIType = FilterUIType.FilterRecord; // If using filter-record, use FilterRecordLocation to control the location of // the filter record. _dp.FieldLayoutSettings.FilterRecordLocation = FilterRecordLocation.OnTopFixed; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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
FieldLayoutSettings Class
FieldLayoutSettings Members
FilterUIType Enumeration
AllowRecordFiltering Property
FilterUIType Enumeration
AllowRecordFiltering Property
FilterRecordLocation Property
FilterOperandUIType Property
FilterOperatorDefaultValue Property
FilterOperatorDropDownItems Property
FilterAction Property
FilterClearButtonLocation Property
FilterClearButtonVisibility Property
FilterEvaluationTrigger Property
RecordFilterCollection Class
RecordFilters Property
RecordFilters Property
IsFilteredOut Property
IsFilteredOut Property
RecordFilterScope Property
FilterStringComparisonType Property