Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Change the DisplayName of a criterion property.

Vote:
 

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
    {
        [Required]
        [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!

#192392
Edited, May 16, 2018 10:32
Vote:
 

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

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

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

#192427
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.