mohammed alani
mohammed alani

Reputation: 356

How to extends "DisplayNameFor" to display full text in asp.net core?

I want to display full property name for "DisplayNameFor" without concatenation.

[Display(Name = "Does the information included in this paper is new?")]
        public bool IsNewInfo { get; set; }

In the Razor view it appears like this

Does the...

Upvotes: 1

Views: 142

Answers (1)

itminus
itminus

Reputation: 25350

Sounds like there's a CSS style that makes the Name shown with an ellipsis (...):

white-space: nowrap; 
overflow: hidden; 
text-overflow: ellipsis; 

By default, the DisplayNameFor() won't truncate the Name.

Upvotes: 1

Related Questions