Change the DisplayName of a criterion property.


Hello, I'm currently in quite a pickle, i need to change the display name of the properties for a criterion.

I currently thought it would be done with the [Display()] attribute.

I have the following code

class FromExternalPageModel : CriterionModelBase
        [Display(Name = "Url",
            Description = "De Url waarvan de referrer vandaan moet komen.")]
        public string url { get; set; }

        [Display(Name = "Sessie breed",
            Description = "Zorgt ervoor dat de referrer vastgehouden wordt gedurende de hele sessie")]
        public bool keepInSession { get; set; }



 Thanks in advance!

Edited, May 16, 2018 10:32

Does it work when you decorate your properties with DojoWidget attribute?

[DojoWidget(LabelTranslationKey = "/some/path")]
public string MyProperty { ... }
Edited, May 16, 2018 10:59

That was exactly what i needed! Thank you very much!

May 16, 2018 16:17
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.