Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
I use the font property when working with RadPropertyGrid.
My user entered a font size of -1. An exception is thrown and the program falls.
For comparison in the PropertyGrid (WinForms), this situation is correctly handled.
private
void
RadPropertyGrid_EditorInitialized(
object
sender, PropertyGridItemEditorInitializedEventArgs e)
{
PropertyGridSpinEditor editor = e.Editor
as
PropertyGridSpinEditor;
if
(editor !=
null
&& e.Item.Parent !=
&& e.Item.Parent.Name ==
"Font"
&& e.Item.Name ==
"Size"
)
editor.MinValue = 1;
}