I know that there is a RadRange Attribute but using it creates a dependency on Telerik.
Consider the scenario that the object to be configured via RadPropertyGrid is defined in a library that is used by multiple projects.
I have written a similar response on another related post:
I party agree with you. The attributes in System.ComponentModel.DataAnnotations can be used used on an class you are in control of. But when you are using a class from a library, or simply use DataTable, then those attributes are useless.
In that case it would be nice to implement a range of providers, one which can interpret DataAnnotations, one that can be implemented by user and provider information from another source, like metadata from a DataTable. All those providers provide the same object with (validation)information about the data to be displayed/edited/validated.
Hello, Erwin,
Thank you for bringing this to our attention. Your feedback is greatly appreciated. I have approved the request for RangeAttribute: https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.rangeattribute?view=net-7.0
Make sure that you cast your vote for the item in order to increase its priority. Click the Follow button to get notified once any status changes occur.
Regards,
Dess | Tech Support Engineer, Principal
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.