Hi to all,
I don't understand wich property I have to set a not-editable combobox.
I've attached view in readonly-mode also. I hope it is clarifier.
I tryed with trigger and set IsReadOnly property, but ComboBox is still editable (I can't edit, but I can selected by dropdown)
01.
<
Style
x:Key
=
"FieldLongComboBoxStyle"
TargetType
=
"telerik:RadComboBox"
BasedOn
=
"{StaticResource RadComboBoxStyle}"
>
02.
<
Setter
Property
=
"Margin"
Value
=
"5"
/>
03.
<
Setter
Property
=
"IsEditable"
Value
=
"True"
/>
04.
<
Setter
Property
=
"ClearSelectionButtonVisibility"
Value
=
"Visible"
/>
05.
<
Setter
Property
=
"ClearSelectionButtonContent"
Value
=
"Cancella selezione"
/>
06.
<
Setter
Property
=
"TextSearchMode"
Value
=
"StartsWith"
/>
07.
<
Setter
Property
=
"EmptyText"
Value
=
"Valore non selezionato"
/>
08.
<
Setter
Property
=
"Width"
Value
=
"200"
/>
09.
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Left"
/>
10.
<
Style.Triggers
>
11.
<
DataTrigger
Binding
=
"{Binding CantUpdateModel}"
Value
=
"True"
>
12.
<
Setter
Property
=
"IsReadOnly"
Value
=
"True"
/>
13.
</
DataTrigger
>
14.
<
DataTrigger
Binding
=
"{Binding CantUpdateModel}"
Value
=
"False"
>
15.
<
Setter
Property
=
"IsReadOnly"
Value
=
"False"
/>
16.
</
DataTrigger
>
17.
</
Style.Triggers
>
18.
</
Style
>