Hello, Al,
To workaround this behavior you can use the following custom MyPropertyGridSpinEditor:
private void RadPropertyGrid_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e)
{
if (e.EditorType == typeof(PropertyGridSpinEditor))
{
e.Editor = new MyPropertyGridSpinEditor();
}
}
public class MyPropertyGridSpinEditor : PropertyGridSpinEditor
{
public override object Value
{
get { return base.Value; }
set
{
RadSpinElement spinEditor = (RadSpinElement)this.EditorElement;
if (value == null)
{
spinEditor.EnableNullValueInput = true;
}
else
{
spinEditor.EnableNullValueInput = false;
}
base.Value = value;
}
}
}
Regards,
Nadya | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.