This question is locked. New answers and comments are not allowed.
Are we supposed to be able to cancel the creation of an item in the RadPropertyGrid by setting the event args Cancel to true? If so, it's not working for me. Despite me setting Cancel here, the active property still shows up.
void mainPropertyGrid2_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e){ string propertyName = e.PropertyDefinition.Binding.Path.Path; if (!string.IsNullOrWhiteSpace(propertyName)) { var o = ((RadPropertyGrid)sender).Item.GetType().GetProperty(propertyName).GetCustomAttributes(false); foreach (object customAttrib in o) { if (customAttrib is WidgetPropertyAttribute) { } else { e.Cancel = true; } } }}