Intersoft ClientUI Documentation
ValueMemberPath Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXDataFilter Class : ValueMemberPath Property






Gets or sets the value member path that will be used to generate the filter descriptors.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property ValueMemberPath As String
Visual Basic (Usage)Copy Code
Dim instance As UXDataFilter
Dim value As String
 
instance.ValueMemberPath = value
 
value = instance.ValueMemberPath
C# 
[CategoryAttribute("Common Properties")]
public string ValueMemberPath {get; set;}
Delphi 
public read-write property ValueMemberPath: String; 
JScript 
CategoryAttribute("Common Properties")
public function get,set ValueMemberPath : String
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property string* get_ValueMemberPath();
public: __property void set_ValueMemberPath( 
   string* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property String^ ValueMemberPath {
   String^ get();
   void set (    String^ value);
}

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>

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.