DataFormComboBoxField with editable and readonly behaviour

0 Answers 59 Views
ComboBox
Johan Kramer
Top achievements
Rank 1
Johan Kramer asked on 21 Aug 2024, 06:48 AM

Hi,

 

I would like to have the DataFormComboBoxField  behave the same way as the Edit mode: Editable, Read-Only and Auto Complete ad in your demo application. But when I set it to readonly it is disabled.

My code:

e.DataField = new DataFormComboBoxField()
{
    ItemsSource = _componentsDS.ComponentKeyWords,
    SelectedValuePath = "KeyWordId",
    DisplayMemberPath = "Abbreviation",
    DataMemberBinding = new Binding("KeywordId") { Mode = BindingMode.TwoWay },
    IsComboboxEditable = true,
    IsReadOnly = true,
    Label = "Keyword"
};

 

The example in your application:

 

Kind regards,

 

Johan

Martin Ivanov
Telerik team
commented on 23 Aug 2024, 04:17 PM

Can you tell me which demo example you are referring to?

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Johan Kramer
Top achievements
Rank 1
Share this question
or