View Full Version : [CLOSED] ConfigOption attribute

Nov 11, 2013, 7:52 PM

I am trying to add custom properties to some of my custom control classes and I know that you can override the ConfigOptionsCollection build

but on some of the existing source code, i see that you did not do that, but rather used a Config Option attribute for the custom property

How does this work and what is the best practice when doing custom properties for custom controls


Nov 11, 2013, 9:04 PM

Generally, using ConfigOptionsCollection is better in custom control. Does it cause some problems?

Nov 12, 2013, 8:44 AM
A ConfigOption attribute is used by our own parser. That parser creates the ConfigOptions property as needed. Just to automatize the process. So, the ConfigOption attribute works in the Ext.NET project only. In your case you should override it manually.