DisplayName attribute ignored
Hi,
Here's the scenario: create an ascx control that you're going to add to the toolbox.
This control has public properties that make it configurable through the back office, for example:
private string myProperty = "";
[Category("My category"), DisplayName("My cool property")]
public string MyProperty
get return this.myProperty;
set this.myProperty = value;
Hello Thomas,
The code building the UI for editing properties does not take into consideration DisplayName attribute. Alternatively, you could implement a control designer for your control. It allows you to specify the UI for the configuration of the control. This way you can provide fields only for the most important properties. You can also provide a user friendly UI for setting complex properties.
For more details please refer to the following documentation article: Creating the control designer
All the best,
Pepi
the Telerik team
Hi Pepi,
Does that mean you don't plan to support the DisplayName attribute in future versions?
Thanks.
Hi Thomas,
I logged this as a feature request for future versions of Sitefinity.
Kind regards,
Pepi
the Telerik team
Hi Pepi,
Could you please give me the PITS URL, so I can follow it?
Thanks.
Hello Thomas,
Here is the PITS url: http://www.telerik.com/support/pits.aspx#/public/sitefinity/7369
Greetings,
Pepi
the Telerik team
Hi,
I simply wanted to add that it would be interesting if the [Description()] attribute was supported too.
Thanks,
Olivier