This is a very simple question.
I have a Html.helper:
@Html.DisplayFor(modelItem => item.Text)
How to I cut down the string from item.Text to a specific length? I wish you could do a SubString or something directly on the item.Text.
If youre wondering why I want this, its because the strings are very long, and I only want to show a bit of it in like the index view etc.
You could just add a property onto your view model that does the truncation of the string and display that instead: