menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TimePicker - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TimePicker

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    TimePicker
    Namespace: Syncfusion.EJ2.Calendars
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class TimePicker : EJTagHelper

    Constructors

    TimePicker()

    Declaration
    public TimePicker()

    Properties

    AllowEdit

    Support for allowEdit has been provided from v16.2.46.

    Declaration
    public bool AllowEdit { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Blur

    Triggers when the control loses the focus.

    Declaration
    public string Blur { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Change

    Triggers when the value is changed.

    Declaration
    public string Change { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Cleared

    Triggers when timepicker value is cleared using clear button.

    Declaration
    public string Cleared { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Close

    Triggers when the popup is closed.

    Declaration
    public string Close { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Created

    Triggers when the component is created.

    Declaration
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    CssClass

    Specifies the root CSS class of the TimePicker that allows to customize the appearance by overriding the styles.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Destroyed

    Triggers when the component is destroyed.

    Declaration
    public string Destroyed { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Enabled

    Specifies whether the component to be disabled or not.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnableMask

    Specifies whether it is a masked timepicker or not. By default the timepicker component render without masked input. If you need masked timepicker input then specify it as true.

    Declaration
    public bool EnableMask { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnablePersistence

    Enable or disable the persisting component's state between the page reloads. If enabled, following list of states will be persisted.

    1. Value
    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    FloatLabelType

    Specifies the placeholder text to be floated. Possible values are: Never: The label will never float in the input when the placeholder is available. Always: The floating label will always float above the input. Auto: The floating label will float above the input after focusing or entering a value in the input.

    Declaration
    public FloatLabelType FloatLabelType { get; set; }
    Property Value
    Type Description
    FloatLabelType

    The default value is Syncfusion.EJ2.Inputs.FloatLabelType.Never

    Focus

    Triggers when the control gets focused.

    Declaration
    public string Focus { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    For

    Declaration
    public override ModelExpression For { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
    Overrides
    Syncfusion.EJ2.EJTagHelper.For

    Format

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    FullScreenMode

    Specifies the component popup display full screen in mobile devices.

    Declaration
    public bool FullScreenMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    HtmlAttributes

    You can add the additional html attributes such as disabled, value etc., to the element. If you configured both property and equivalent html attribute then the component considers the property value.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ItemRender

    Triggers while rendering the each popup list item.

    Declaration
    public string ItemRender { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    KeyConfigs

    Customizes the key actions in TimePicker. For example, when using German keyboard, the key actions can be customized using these shortcuts.

    Declaration
    public object KeyConfigs { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    MaskPlaceholder

    Specifies the mask placeholder to be displayed on masked timepicker.

    Declaration
    public TimePickerMaskPlaceholder MaskPlaceholder { get; set; }
    Property Value
    Type Description
    TimePickerMaskPlaceholder

    The default value is null

    Max

    Declaration
    public object Max { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Min

    Declaration
    public object Min { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Open

    Triggers when the popup is opened.

    Declaration
    public string Open { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    OpenOnFocus

    By default, the popup opens while clicking on the timepicker icon. If you want to open the popup while focusing the time input then specify its value as true.

    Declaration
    public bool OpenOnFocus { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Placeholder

    Specifies the placeholder text that is displayed in textbox.

    Declaration
    public string Placeholder { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Readonly

    Specifies the component in readonly state.

    Declaration
    public bool Readonly { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    ScrollTo

    Specifies the scroll bar position if there is no value is selected in the popup list or the given value is not present in the popup list.

    For more details refer to Time Duration sample.

    Declaration
    public object ScrollTo { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ServerTimezoneOffset

    By default, the time value will be processed based on system time zone. If you want to process the initial time value using server time zone then specify the time zone value to serverTimezoneOffset property.

    Declaration
    public double ServerTimezoneOffset { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is Double.NaN

    ShowClearButton

    Specifies whether to show or hide the clear icon.

    Declaration
    public bool ShowClearButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Step

    Declaration
    public double Step { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 30

    StrictMode

    Declaration
    public bool StrictMode { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Value

    Gets or sets the value of the component. The value is parsed based on the culture specific time format.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Width

    Gets or sets the width of the TimePicker component. The width of the popup is based on the width of the component.

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ZIndex

    specifies the z-index value of the timePicker popup element.

    Declaration
    public int ZIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The default value is 1000

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved