Hi,
I tried a method in a similar thread for custom ComboBox editor. I can see NodeTypes in the ComboBox element. But when select the item, value can not assign to target value. CheckConverter is just created to check binding value, and converter not rising.
Thanks in advance.
I tried a method in a similar thread for custom ComboBox editor. I can see NodeTypes in the ComboBox element. But when select the item, value can not assign to target value. CheckConverter is just created to check binding value, and converter not rising.
Thanks in advance.
public class Node : ObservableObject{ protected int nodeType; public int NodeType { get { return nodeType; } set { nodeType= value; RaisePropertyChanged(() => NodeType ); } } }<DataTemplate x:Key="NodeTypeTemplate"> <telerikRad:RadComboBox ItemsSource="{BindingSource={x:Static helpers:ItemViewFacade.NodeTypes}}" SelectedValue="{Binding NodeType,Converter={StaticResourceCheckConverter}, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Value" DisplayMemberPath="Header" Margin="0"> </telerikRad:RadComboBox> </DataTemplate>private void radPropertyGrid1_AutoGeneratingPropertyDefinition(object sender, AutoGeneratingPropertyDefinitionEventArgs e) { if(e.PropertyDefinition.DisplayName == "NodeType") { var templateName = string.Format("{0}Template",e.PropertyDefinition.DisplayName); e.PropertyDefinition.EditorTemplate = templateSelector.GetTemplate(templateName); }}