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

How can I apply a ValueConverter to the selected item?

1 Answer 107 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kristian
Top achievements
Rank 1
Kristian asked on 07 Jul 2011, 02:59 PM
Hi,

Is it possible to apply a ValueConverter to the selected item in an editable ComboBox?

I have successfully applied a ValueConverter to the items in the ComboBox itself (through creating a custom DataTemplate and assigning it to the ItemTemplate property of the ComboBox), but this ValueConverter is not applied to the currently selected item.

I have tried to open the ComboBox in Expression Blend and creating a custom ControlTemplate for it (and assigning this template to the EditableTemplate property). However I could not find a way to apply the converter to the PART_EditableTextbox in the generated template.

Thanks,
Kristian

1 Answer, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 13 Jul 2011, 07:11 AM
Hello,

You can not apply a DataTemplate to the content of the selected item in editable RadComboBox. Its content is presented in a TextBox and the content is a Text. That's both how the RadComboBox and the PresentationFramework's ComboBox work.

I am sorry for the inconvenience.

All the best,
Pana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ComboBox
Asked by
Kristian
Top achievements
Rank 1
Answers by
Pana
Telerik team
Share this question
or