Intersoft ClientUI Documentation
ValueMemberPath Property (UXDataFilter)



Gets or sets the value member path that will be used to generate the filter descriptors.
Syntax
<CategoryAttribute("Common Properties")>
Public Property ValueMemberPath As String
Dim instance As UXDataFilter
Dim value As String
 
instance.ValueMemberPath = value
 
value = instance.ValueMemberPath
[CategoryAttribute("Common Properties")]
public string ValueMemberPath {get; set;}
[CategoryAttribute("Common Properties")]
public:
property String^ ValueMemberPath {
   String^ get();
   void set (    String^ value);
}
Remarks
To populate the UXDataFilter from a collection, you can assign the collection to ItemsSource property and set the DisplayMemberPath for the displayed text and ValueMemberPath for the filter expression. If the ValueMemberPath is not specified, UXDataFilter will use the member path specified in DisplayMemberPath.
Example

The following code shows how to populate UXDataFilter using ItemsSource and set the ValueMemberPath property to CategoryID.

XAML
Copy Code
    <Intersoft:UXDataFilter FilterDescriptors="{Binding QueryDescriptor.FilterDescriptors, Mode=TwoWay}" 
                            ItemsSource="{Binding Categories}" QueryOperation="Server" IsBatchFilter="True"
                            Header="By Category:" DisplayMemberPath="CategoryName" ValueMemberPath="CategoryID" Margin="8,0">                   
    </Intersoft:UXDataFilter>
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

UXDataFilter Class
UXDataFilter Members

Send Feedback