Skip to content

ComboBoxStyle_e.EditableText returns null when custom text is entered manually #149

Description

@volkenanix

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; } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions