I have followed the provided information and setup a sample project to test the specific scenario. Indeed, when you edit the Size
property and leave only the width part, an error will occur. Note that the Size
property expects (width,height) format. Otherwise, the entered input wouldn't be able to parse to a valid Size.
The possible solution that I can suggest is either to handle the PropertyValidating
event and ensure that the newly entered value is valid and can be parsed to a valid Size
or disable entering edit mode for the Size
property itself bu edit only the width and height parts of the size. For this case it is necessary to cancel the Editing
event. You can find below a sample code snippet:
sender, Telerik.WinControls.UI.PropertyGridItemEditingEventArgs e)
Feel free to use this approach which suits your requirement best.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.