Unplanned
Last Updated: 16 Feb 2024 12:30 by Martin
erwin
Created on: 24 Jul 2023 21:30
Category: PropertyGrid
Type: Feature Request
1
RadPropertyGrid should honour System.ComponentModel.DataAnnotations such as Range

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.

3 comments
Martin
Posted on: 16 Feb 2024 12:30

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.

 

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 31 Jul 2023 10:20

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.

erwin
Posted on: 25 Jul 2023 12:26
Also, I'm aware that I can use Reflection to add the RadRange Attribute to Properties that have the DataAnnotations.Range attribute, but would be nice if the control would support the standard attributes out of the box.