Hi,
I'm creating a XamComboEditor that is bound to an ItemsSource. I set the combo editor to IsReadOnly=true and IsEditable=False, but the value can still be changed by using the drop down arrow. I'm using infragistics 9.1. Here is my code:
<infraEditors:XamComboEditor ItemsSource={..binding..} IsEditable="False" IsReadOnly="True"/>
Is this a bug?
Mike
No, this is consistent with the same properties on the WPF ComboBox. Essentially ReadOnly controls the ReadOnly state of the contained textbox which gives you a dropdown list style functionality which allows copy/paste of the text within the edit area.
Hi
Thanks for the response. That seems contrary to the documentation for XamComboBox.IsEditable:
// Remarks: // If IsEditable is set to False, the textbox portion of the editor is not // editable. It will not let you enter any text. In this mode the only way to // modify the value of editor is to select an item from the drop down. This // differs from Infragistics.Windows.Editors.ValueEditor.ReadOnly property in // that the ReadOnly doesn't let you modify the value of the editor at all. // Infragistics.Windows.Editors.ValueEditor.ReadOnly
From this I gather that IsEditable prevents the TextBox from being edited, whereas IsReadOnly should prevent selecting from a dropdown and "modifying the value of the editor at all".
Either way, how can I make the combo box's value not changable at all (except possibly by changing the value of XamComboBox.Value.
Thanks