I'm trying to execute the example here: http://www.telerik.com/help/wpf/raddatafilter-how-to-create-custom-filter-editors.html
When I'm inside the EditorCreated triggered method, switching through the property names I try to set the value of e.Editor to a RadComboBox. See below.
I get an InvalidCastException when I try to cast e.Editor. It is of type StringFIlterEditor. What am I missing from the example?
When I'm inside the EditorCreated triggered method, switching through the property names I try to set the value of e.Editor to a RadComboBox. See below.
private
void
DataFilter_EditorCreated(
object
sender, Telerik.Windows.Controls.Data.DataFilter.EditorCreatedEventArgs e)
{
switch
(e.ItemPropertyDefinition.PropertyName)
{
case
"Name"
:
RadComboBox temp = (RadComboBox)e.Editor;
temp.ItemsSource = nameList;
break
;
}
}
I get an InvalidCastException when I try to cast e.Editor. It is of type StringFIlterEditor. What am I missing from the example?