Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

SelectOne default value

$
0
0

Hi,

I have a string property marked with the SelectOne property, which displays as a drop down in the editor:

[DefaultValue("00:00")] //not working
[SelectOne(SelectionFactoryType = typeof(TimeSelectionFactory))]
public virtual string TestTime { get; set; }

How can I declare a default value for the drop down?

Many thanks


Viewing all articles
Browse latest Browse all 9076

Trending Articles