In RadGrid there is a good way to customize content in cells with c#, with GridViewColumnBase. Is it also possible to customize RadPropertyGrid throgh code?
I want to add a button to a RadPropertyGrid through code - not through xaml.
I have the radProperty in xaml: <telerik:RadPropertyGrid x:Name="radProperty" />
On initialization of xaml, I have this code:
public Properties()
{
InitializeComponent();
var button = new Button() { Height = 20, Width = 100, Content = "Test" };
var property = new Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition()
{
DisplayName = "Content",
EditorTemplate.Template = button (so much incorrect but how ?)
};
this.radProperty.PropertyDefinitions.Add(property);
}
I actually have to add a combobox instead of a button, but I think if I can add a simple button, then I have the technique for adding a var comboBox = new Telerik.Windows.Controls.RadComboBox();