Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to generate a filter set based on DataLayoutControl

$
0
0

In this example, we use the FilteringBehavior class to generate a set of filters based on the metadata type. The metadata type is specified using the SourceType property.

[XAML]
<dx:FilteringBehaviorSourceType="{x:Type local:PersonFilteringViewModel}"/>


The way properties are edited is configured using the following attributes.

- FilterBooleanChoice

[C#]
[FilterBooleanChoice()]publicboolHasCar{get;set;}

 



- FilterDateTimeRange

[C#]
[FilterDateTimeRange("MinBirthDate","MaxBirthDate")]publicDateTimeBirthDate{get;set;}

 



- FilterRange

[C#]
[FilterRange("MinAge","MaxAge",EditorType=RangeUIEditorType.Range)]publicintAge{get;set;}

 



- FilterLookup

[C#]
[FilterLookup("NumberOfChildren")]publicintChildren{get;set;}

 

 


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>