Hi,
I have problem related with RadComboBox. It does not display correctly
selected item if DisplayMemberPath uses indexer.
Xaml:
I debugged
this situation using .Net Reflector and find out that when SelectedItem is
changed the RadComboBox tries to change the Text.
To get value
from indexer it is used “BindingExpressionHelper.CreateGetValueFunc” function.
Inside this
function there is an attempt to create a method to get the value. During the
process of creation of the method the argument exception is thrown and as
result swallows exception and uses another one method to get the value.
So the method
returns empty string (because it has wrong method to get value) and it is
displayed in ComboBox TextBox (instead of proper value).
How can i
resolve this behavior?
P.S.
System.Windows.Controls.ComboBox works fine with the same conditions.
Thanks to all,
Roman
Denysenko