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






In This Topic
    SelectionMode Property (InputDateBase)
    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)>
    <System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
    Public Overridable Property SelectionMode As DateSelectionMode
    'Usage
     
    
    Dim instance As InputDateBase
    Dim value As DateSelectionMode
     
    instance.SelectionMode = value
     
    value = instance.SelectionMode
    [Json(2)]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public virtual DateSelectionMode SelectionMode {get; set;}
    public read-write property SelectionMode: DateSelectionMode; virtual; 
    JsonAttribute(2)
    System.ComponentModel.DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)
    public function get,set SelectionMode : DateSelectionMode
    [Json(2)]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public: __property virtual DateSelectionMode get_SelectionMode();
    public: __property virtual void set_SelectionMode( 
       DateSelectionMode value
    );
    [Json(2)]
    [System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
    public:
    virtual property DateSelectionMode SelectionMode {
       DateSelectionMode get();
       void set (    DateSelectionMode value);
    }
    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