ASP.NET MVC Controls | ComponentOne
C1.Web.Mvc Namespace / InputDateTime Class / SelectionMode Property

In This Topic
    SelectionMode Property (InputDateTime)
    In This Topic
    Gets or sets a value that indicates whether users can select days, months, or no values at all.
    Syntax
    'Declaration
     
    
    <JsonAttribute(2)>
    <DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Overridable Property SelectionMode As DateSelectionMode
    [Json(2)]
    [DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public virtual DateSelectionMode SelectionMode {get; set;}
    Remarks
    This property affects the behavior of the drop-down calendar, but not the format used to display dates. If you set selectionMode to 'Month', you should normally set the format property to 'MMM yyyy' or some format that does not include the day.
    See Also