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






Syntax

Visual Basic (Declaration) 
Public Property SelectedItemConverter As IValueConverter
Visual Basic (Usage)Copy Code
Dim instance As UXMultipleSelectionComboBox
Dim value As IValueConverter
 
instance.SelectedItemConverter = value
 
value = instance.SelectedItemConverter
C# 
public IValueConverter SelectedItemConverter {get; set;}
Delphi 
public read-write property SelectedItemConverter: IValueConverter; 
JScript 
public function get,set SelectedItemConverter : IValueConverter
Managed Extensions for C++ 
public: __property IValueConverter* get_SelectedItemConverter();
public: __property void set_SelectedItemConverter( 
   IValueConverter* value
);
C++/CLI 
public:
property IValueConverter^ SelectedItemConverter {
   IValueConverter^ get();
   void set (    IValueConverter^ value);
}

Remarks

The collection of data that has been selected will be assigned to the SelectedItems property. To get the selected items collection or initialize the selected items, you can easily bind the property from your ViewModel to the SelectedItems property of UXMultipleSelectionComboBox. For more details on how to initialize selected items, see How to Initialize Selected Items in UXMultipleSelectionComboBox.

With SelectedItemConverter property, it allows you to bind a collection of items where the selected item type is different with the search result type. Note that you should set the SelectedValuePath property of UXMultipleSelectionComboBox for the selected items to work properly.

This feature is particularly useful in such a scenario that you want to display the records from a table but you must bind it from another table that logically linked to a foreign key. In this case, you just need to assign the foreign key path to the SelectedValuePath property and UXMultipleSelectionComboBox will do the rest for you. You can see How to Implement Selected Items Converter in UXMultipleSelectionComboBox to learn more about this feature.

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.