This is a migrated thread and some comments may be shown as answers.

ClearSelectionButton is not calling the model

1 Answer 41 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 2
Martin asked on 25 Mar 2013, 02:15 PM

The clear button is clearing the input field in the PropertyGrid but the value on the model is never set.

<DataTemplate x:Key="RequiredCondition">
      <telerik:RadComboBox ItemsSource="{Binding Path=DataContext.Conditions, RelativeSource={RelativeSource FindAncestor,
                                             AncestorType={x:Type views:PropertyEditorView}}, Mode=OneWay}"
                           DisplayMemberPath="Name"
                           SelectedItem="{Binding CurrentPropertySet[RequiredCondition]}"
                           ToolTip="{Binding ElementName=cboRequiredCondition, Path=SelectionBoxItem.Description}"
                           ClearSelectionButtonContent="Clear"
                           ClearSelectionButtonVisibility="Visible"
                           TextSearchMode="Contains"
                           x:Name="cboRequiredCondition"/>
  </DataTemplate>

1 Answer, 1 is accepted

Sort by
0
Ventzi
Telerik team
answered on 28 Mar 2013, 11:28 AM
Hello Martin,

We are not aware of such problem. I've tried to reproduce the problem, but unfortunately I couldn't. Would you please provide us some more information?

For example:
- Which version of RadControls you are using?
- Do you receive a binding error in the output window when you select an item?

More details on your current implementation could help us reproduce the issue. In that way we will be able to start researching and provide a fix in timely manner.

Kind regards,
Ventzi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
Martin
Top achievements
Rank 2
Answers by
Ventzi
Telerik team
Share this question
or