Completed
Last Updated: 14 Apr 2020 15:15 by ADMIN
Release 2.11.0
Heiko
Created on: 11 Dec 2019 09:52
Category: Grid
Type: Feature Request
8
Use DataAnnotations for column header
It would be nice if the title of a column is fetched from Display(...) or DisplayName(...) attribute of field.
3 comments
ADMIN
Marin Bratanov
Posted on: 19 Dec 2019 14:47

Hello Heiko,

Indeed, they do and so I marked this as "Approved" meaning that I find value in such a feature and you can click the Follow button to get more status updates for when it gets implemented. In the meantime, however, you would still have to write a method to get the annotation attribute yourself.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Heiko
Posted on: 19 Dec 2019 09:49

Hi Marin,

of course I can extract the attribute by myself. But then, I could also develop a grid by myself. ;-)  The point is consistency, because the Grid in ASP.NET MVC/Core is using DataAnnotations, afaik.

Regards
Heiko

ADMIN
Marin Bratanov
Posted on: 11 Dec 2019 10:12

Hi Heiko,

The Title attribute of a column is a string, so you can put anything there, so you can also extract the attribute with your own code to put it there. Have you tried that and do you face problems with it? Am I missing some point?

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor