Version

LimitToList Property

Specifies whether to restrict the input to items in the items source. Default value is False.
Syntax
'Declaration
 
Public Property LimitToList As Nullable(Of Boolean)
public Nullable<bool> LimitToList {get; set;}
Remarks

LimitToList is used to restrict the user input to drop-down items. If the user enters text that doesn't have a matching item in the underlying items collection, the Infragistics.Windows.Editors.ValueEditor.IsValueValid property will be set to False. When the user attempts the leave the editor with such a value, Infragistics.Windows.Editors.ValueEditor.EditModeValidationError event is raised and by default an error message is displayed to the user. This behavior can be controlled by the Infragistics.Windows.Editors.InvalidValueBehavior property.

Note that the matching item is found by searching drop-down items for an item that has the same display text (based on the DisplayMemberPath) as what the user has entered in the editor. If a matching is item is found, the Infragistics.Windows.Editors.ValueEditor.Value, Infragistics.Windows.Editors.ValueEditor.Text, Infragistics.Windows.Editors.XamComboEditor.SelectedIndex and Infragistics.Windows.Editors.XamComboEditor.SelectedItem will be updated to reflect the matching item. If no matching item is found, the Value property will retain its previous value. The Text property will reflect the entered text, SelectedItem will be set to null and SelectedIndex will be set to -1.

Requirements

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

See Also