When using a ComboBox with ComboBoxStyle_e.EditableText, the expected behavior is that the user can either select an item from the provider’s list or type custom text.
However, if a user types a value that is not present in the list returned by the ICustomItemsProvider (or even a fixed list of elements), the bound property in the model is set to null (or remains unchanged) upon the page closing. It appears the xCad binding logic discards the value if no match is found, even though the UI control visually accepts the text.
[ComboBox("text1", "text2", "text3")]
[ComboBoxOptions(ComboBoxStyle_e.EditableText)]
public string CustomText { get; set; }
When using a ComboBox with
ComboBoxStyle_e.EditableText, the expected behavior is that the user can either select an item from the provider’s list or type custom text.However, if a user types a value that is not present in the list returned by the ICustomItemsProvider (or even a fixed list of elements), the bound property in the model is set to null (or remains unchanged) upon the page closing. It appears the xCad binding logic discards the value if no match is found, even though the UI control visually accepts the text.