alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class SfDateTimePicker<TValue>

    The DateTimePicker is a graphical user interface component that allows users to select both date and time values through an interactive popup interface.

    Inheritance
    System.Object
    SfBaseComponent
    SfInputBase<TValue>
    CalendarBase<TValue>
    SfDatePicker<TValue>
    SfDateTimePicker<TValue>
    Implements
    System.IAsyncDisposable
    Inherited Members
    CalendarBase<TValue>.CalendarMode
    CalendarBase<TValue>.ConvertToGregorian(String, String)
    CalendarBase<TValue>.ConvertToHijri(TValue, String)
    CalendarBase<TValue>.DayHeaderFormat
    CalendarBase<TValue>.Depth
    CalendarBase<TValue>.FirstDayOfWeek
    CalendarBase<TValue>.KeyConfigs
    CalendarBase<TValue>.ShowTodayButton
    CalendarBase<TValue>.Start
    CalendarBase<TValue>.WeekNumber
    CalendarBase<TValue>.WeekRule
    SfBaseComponent.DisposeAsync()
    SfDatePicker<TValue>.AllowEdit
    SfDatePicker<TValue>.Cleared
    SfDatePicker<TValue>.Created
    SfDatePicker<TValue>.CurrentView()
    SfDatePicker<TValue>.DayCellRendering
    SfDatePicker<TValue>.Destroyed
    SfDatePicker<TValue>.EnableMask
    SfDatePicker<TValue>.FloatLabelType
    SfDatePicker<TValue>.FocusAsync()
    SfDatePicker<TValue>.FocusOutAsync()
    SfDatePicker<TValue>.Format
    SfDatePicker<TValue>.FullScreen
    SfDatePicker<TValue>.GetPersistDataAsync()
    SfDatePicker<TValue>.HidePopupAsync(EventArgs)
    SfDatePicker<TValue>.HtmlAttributes
    SfDatePicker<TValue>.InputAttributes
    SfDatePicker<TValue>.InputFormats
    SfDatePicker<TValue>.NavigateAsync(CalendarView, TValue)
    SfDatePicker<TValue>.Navigated
    SfDatePicker<TValue>.OnBlur
    SfDatePicker<TValue>.OnClose
    SfDatePicker<TValue>.OnFocus
    SfDatePicker<TValue>.OnInput
    SfDatePicker<TValue>.OnOpen
    SfDatePicker<TValue>.OpenOnFocus
    SfDatePicker<TValue>.Placeholder
    SfDatePicker<TValue>.Readonly
    SfDatePicker<TValue>.Selected
    SfDatePicker<TValue>.ShowClearButton
    SfDatePicker<TValue>.ShowPopupAsync(EventArgs)
    SfDatePicker<TValue>.StrictMode
    SfDatePicker<TValue>.TabIndex
    SfDatePicker<TValue>.ValueChange
    SfDatePicker<TValue>.Width
    SfDatePicker<TValue>.ZIndex
    SfInputBase<TValue>.CssClass
    SfInputBase<TValue>.Disabled
    SfInputBase<TValue>.EnablePersistence
    SfInputBase<TValue>.ID
    SfInputBase<TValue>.ValidateOnInput
    SfInputBase<TValue>.Value
    SfInputBase<TValue>.ValueChanged
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.CalendarEditContext
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.ConvertDateValue(TValue)
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.CurrentCulture
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.GetHijriMonthIndex(System.String, System.String)
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.IsDateOnlyType()
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.IsDateTimeOffsetType()
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.ReplaceMonthName(System.String, System.DateTime, System.String[], System.String)
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ACTIVE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ARIAACTIVEDESCENDANT
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ARIAEXPANDED
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ARIAINVALID
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseFloatLabelType
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseHtmlAttributes
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseInputAttributes
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseIsReadOnlyInput
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BasePlaceholder
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseReadOnly
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseShowClearButton
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseTabIndex
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BaseWidth
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BODY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CalendarBaseInstance
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CALENDARCELLCONTAINER
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CalendarClass
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ChangedEventArgs
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ChangeEvent(System.EventArgs, System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ChangeHandlerAsync(Microsoft.AspNetCore.Components.ChangeEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ClientPopupRenderAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CLOSEICON
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CloseIconClass
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ClosePopupAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CONTAINERCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ConvertGeneric(System.DateTime)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.CreateMaskAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DATECONTAINER
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DateIcon
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DATEICONCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DateIconHandlerAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DATEPICKER
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DatePickerParent
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DAYLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DAYLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DAYOFWEEKLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DAYOFWEEKLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.DisposeAsyncCore()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ERRORCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.FALSE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.FocusHandlerAsync(Microsoft.AspNetCore.Components.Web.FocusEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.FocusOutHandlerAsync(Microsoft.AspNetCore.Components.Web.FocusEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.FormatValue(System.String)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.FormatValueAsString(TValue)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.GetDefaultCulture()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.GetDefaultFormat()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.HidePopupElementAsync(System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.HideTimePopupAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.HOURLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.HOURLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.INPUTFOCUS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InputHandlerAsync(Microsoft.AspNetCore.Components.ChangeEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InvokeBlurEventAsync(Microsoft.AspNetCore.Components.Web.FocusEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InvokeChangeEventAsync(System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InvokeClearBtnEventAsync(System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InvokeFocusEventAsync(Microsoft.AspNetCore.Components.Web.FocusEventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.InvokeOpenEventAsync(System.Boolean, System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsCalendarRender
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsCalendarRendered
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsDatePickerPopup
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsDateTimeType()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsDevice
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsExtendedDevicePopup()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.IsListRender
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.KeyboardTimePopupActionAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MaskPlaceholderDictionary
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MINUTELOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MINUTELOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MODEL
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ModelDay
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MODELDAYCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MODELHEADER
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ModelMonth
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MODELMONTHCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ModelYear
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MODELYEARCLASS
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MONTHLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MONTHLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.MouseIconHandlerAsync(System.EventArgs, System.String)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.OnAfterRenderAsync(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.OnInitializedAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.OnParametersSetAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.OpenPopupAsync(System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.POPUP
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PopupCloseHandlerAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PopupContainer
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PopupElement
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PopupEventArgs
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.POPUPEXPAND
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.POPUPHOLDER
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PopupHolderEle
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.PreviousElementValue
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.READONLYATTR
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ROOT
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ScrollToNextSection(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.SECONDLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.SECONDLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.SelectCalendarAsync(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.ShowPopupCalendar
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.StrictModeUpdateAsync(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.TimeIconHandlerAsync(System.EventArgs)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.TimePart
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.TRUE
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateChildProperties(System.Object)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateDateTimePopupState(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateErrorClass()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateFieldSetStatus(System.Boolean)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateInputAsync()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateValidateClass()
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.UpdateValueAsync(System.Object)
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.YEARLOCALEKEY
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.YEARLOCALEVALUE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.APPEND
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.APPENDICON
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ARIADISABLED
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.BaseAutocomplete
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.BlurHandlerAsync(System.String, System.Boolean)
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ChildContent
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.CLEARICON
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.CLEARICONHIDE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ClickStopPropagation
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ComponentReference
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ContainerAttributes
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ContainerClass
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ContainerHtmlAttributes
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.CONTROLCONTAINER
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.CONTROLOLDCONTAINER
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DataId
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DECREMENT
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DECREMENTHEADING
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DecrementTitle
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DISABLE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DISABLEDATTRIBUTE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.DISABLEICON
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.FLOATINPUT
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.FloatLabel
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.FLOATLABELBOTTOM
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.FLOATLABELTOP
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.FLOATTEXT
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.GROUPICON
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.INCREMENT
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.INCREMENTHEADING
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.IncrementTitle
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.INPUT
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.INPUTBASECLASS
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.InputEditContext
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.INPUTGROUP
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.InputHtmlAttributes
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.IsBindInputEvent
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.IsClearButtonClicked
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.IsFocused
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.IsValueTemplate
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ListOfButtons
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.MouseDownSpinnerPrevent
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.MULTILINE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.MultilineInput
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.OnChange
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.OnChangeHandlerAsync(Microsoft.AspNetCore.Components.ChangeEventArgs)
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.OnInputHandlerAsync(Microsoft.AspNetCore.Components.ChangeEventArgs)
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.OnPaste
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.OnPasteHandlerAsync(Microsoft.AspNetCore.Components.Web.ClipboardEventArgs)
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.PREPEND
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.PREPENDICON
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.PreventIconHandler
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.RootClass
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.SetEnabled()
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.SPACE
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.SpinButton
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.SPINDOWN
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.SPINUP
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.ValueExpression
    Syncfusion.Blazor.Toolkit.Inputs.SfInputBase<TValue>.WireClearBtnEventsAsync()
    Namespace: Syncfusion.Blazor.Toolkit.Calendars
    Assembly: Syncfusion.Blazor.Toolkit.dll
    Syntax
    public class SfDateTimePicker<TValue> : SfDatePicker<TValue>, IAsyncDisposable, IMaskPlaceholder
    Type Parameters
    Name Description
    TValue

    Specifies the type of the DateTimePicker value, typically System.DateTime or nullable DateTime.

    Remarks

    The SfDateTimePicker component extends the functionality of a standard DatePicker by providing additional time selection capabilities. It supports features like time step intervals, minimum and maximum time constraints, Islamic calendar mode, and various formatting options. The component provides separate popups for date and time selection, making it easy for users to specify precise date-time values.

    Examples

    Basic usage of the DateTimePicker component:

    <SfDateTimePicker TValue="DateTime" Value="DateTime.Now" Format="dd/MM/yyyy HH:mm">
    </SfDateTimePicker>

    Basic usage of DateTimePicker events:

    <SfDateTimePicker TValue="DateTime?"
                      ValueChange="@OnValueChange"
                      OnOpen="@OnPopupOpen"
                      OnFocus="@OnFocus" />
    
    @code {
        private void OnValueChange(ChangedEventArgs<DateTime?> args)
        {
            Console.WriteLine($"Selected date: {args.Value}");
        }
    
        private void OnPopupOpen(PopupObjectArgs args)
        {
            Console.WriteLine("Popup opened");
        }
    
        private void OnFocus(FocusEventArgs args)
        {
            Console.WriteLine("DateTimePicker focused");
        }
    }
    <SfDateTimePicker TValue="DateTime?" @bind-Value="@SelectedDateTime" 
                      Min="@MinDateTime" Max="@MaxDateTime" 
                      MinTime="@MinTime" MaxTime="@MaxTime"
                      Step="30" TimeFormat="HH:mm">
    </SfDateTimePicker>
    
    @code {
        DateTime? SelectedDateTime = DateTime.Now;
        DateTime MinDateTime = new DateTime(2024, 1, 1, 9, 0, 0);
        DateTime MaxDateTime = new DateTime(2024, 12, 31, 18, 0, 0);
        DateTime MinTime = new DateTime(2024, 1, 1, 9, 0, 0);
        DateTime MaxTime = new DateTime(2024, 1, 1, 18, 0, 0);
    }

    Constructors

    SfDateTimePicker()

    Declaration
    public SfDateTimePicker()

    Properties

    Max

    Gets or sets the maximum date and time value that can be selected in the SfDateTimePicker<TValue> component.

    Declaration
    public override DateTime Max { get; set; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime value that represents the maximum date and time that can be selected. The default value is December 31, 2099 at 23:59:59.

    Overrides
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.Max
    Remarks

    The Max property defines the latest date and time that can be selected in the DateTimePicker component. When combined with the MaxTime property, the following behaviors apply:

    • If MaxTime is greater than the current Max property's time, the component will prioritize the Max property.
    • If MaxTime is less than the current Max property's time, the component will prioritize the MaxTime property.
    Users will not be able to select any date and time beyond this maximum value.
    Examples
    <SfDateTimePicker TValue="DateTime?" Max="@MaxDateTime">
    </SfDateTimePicker>
    
    @code {
        DateTime MaxDateTime = new DateTime(2024, 12, 31, 23, 59, 59);
    }

    MaxTime

    Gets or sets the maximum time that can be selected in the time popup of the SfDateTimePicker<TValue> component.

    Declaration
    public DateTime MaxTime { get; set; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime value representing the maximum selectable time. The default value is December 31, 2099 at 23:59:59.

    Remarks

    The MaxTime property restricts the time selection for all dates except the specific date defined by the Max property. The following behaviors apply when both MaxTime and Max are configured:

    • If MaxTime is greater than the current Max property's time component, the component will prioritize the Max property.
    • If MaxTime is less than the current Max property's time component, the component will prioritize the MaxTime property.
    This property is particularly useful for setting business hours or operational time limits across all selectable dates.
    Examples
    <SfDateTimePicker TValue="DateTime?" MinTime="@MinTime" MaxTime="@MaxTime">
    </SfDateTimePicker>
    
    @code {
        DateTime MinTime = new DateTime(2024, 8, 6, 9, 0, 0);
        DateTime MaxTime = new DateTime(2024, 8, 6, 18, 0, 0);
    }

    Min

    Gets or sets the minimum date and time value that can be selected in the SfDateTimePicker<TValue> component.

    Declaration
    public override DateTime Min { get; set; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime value that represents the minimum date and time that can be selected. The default value is January 1, 1900 at 00:00:00.

    Overrides
    Syncfusion.Blazor.Toolkit.Calendars.CalendarBase<TValue>.Min
    Remarks

    The Min property defines the earliest date and time that can be selected in the DateTimePicker component. When combined with the MinTime property, the following behaviors apply:

    • If MinTime is less than the current Min property's time, the component will prioritize the Min property.
    • If MinTime is greater than the current Min property's time, the component will prioritize the MinTime property.
    Users will not be able to select any date and time before this minimum value.
    Examples
    <SfDateTimePicker TValue="DateTime?" Min="@MinDateTime">
    </SfDateTimePicker>
    
    @code {
        DateTime MinDateTime = new DateTime(2024, 1, 1, 0, 0, 0);
    }

    MinTime

    Gets or sets the minimum time that can be selected in the time popup of the SfDateTimePicker<TValue> component.

    Declaration
    public DateTime MinTime { get; set; }
    Property Value
    Type Description
    System.DateTime

    A System.DateTime value representing the minimum selectable time. The default value is January 1, 1900 at 00:00:00.

    Remarks

    The MinTime property restricts the time selection for all dates except the specific date defined by the Min property. The following behaviors apply when both MinTime and Min are configured:

    • If MinTime is less than the current Min property's time component, the component will prioritize the Min property.
    • If MinTime is greater than the current Min property's time component, the component will prioritize the MinTime property.
    This property is particularly useful for setting business hours or operational time limits across all selectable dates.
    Examples
    <SfDateTimePicker TValue="DateTime?" MinTime="@MinTime" MaxTime="@MaxTime">
    </SfDateTimePicker>
    
    @code {
        DateTime MinTime = new DateTime(2024, 8, 6, 9, 0, 0);
        DateTime MaxTime = new DateTime(2024, 8, 6, 18, 0, 0);
    }

    OnItemRender

    Gets or sets the event callback that will be invoked while rendering each item in the DateTimePicker popup list.

    Declaration
    public EventCallback<ItemEventArgs<TValue>> OnItemRender { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<ItemEventArgs<TValue>>

    An Microsoft.AspNetCore.Components.EventCallback<> that receives an ItemEventArgs<T> for each item being rendered in the popup.

    Remarks

    This event is triggered for each item (such as time slots or quick access options) that is rendered in the DateTimePicker popup. Use this event to customize the appearance, content, or behavior of individual items in the popup list. You can modify item properties, add custom CSS classes, or conditionally show/hide items based on your requirements.

    Examples
    <SfDateTimePicker TValue="DateTime?" OnItemRender="@OnItemRender" />
    
    @code {
        private void OnItemRender(ItemEventArgs<DateTime?> args)
        {
            // Customize item rendering
            if (args.Item is not null)
            {
                args.Item.CssClass = "custom-item-style";
            }
        }
    }

    OnKeyDown

    Gets or sets an event callback that is triggered when a key is pressed down while the input element has focus.

    Declaration
    public EventCallback<KeyboardEventArgs> OnKeyDown { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.Web.KeyboardEventArgs>

    An Microsoft.AspNetCore.Components.EventCallback<> that is invoked when a key down event occurs on the input element.

    Remarks

    This event allows you to handle keyboard interactions such as navigation keys, Enter key for selection, and Escape key for closing popups. The event is particularly useful for implementing custom keyboard shortcuts and navigation behavior in the DateTimePicker component.

    Examples

    Handling the OnKeyDown event:

    <SfDateTimePicker TValue="DateTime" OnKeyDown="HandleKeyDown">
    </SfDateTimePicker>
    
    private async Task HandleKeyDown(KeyboardEventArgs args)
    {
        if (args.Key == "F2")
        {
            // Custom functionality
        }
    }

    ScrollTo

    Gets or sets the scroll bar position in the time popup list when no value is selected or the given value is not present in the DateTimePicker popup list.

    Declaration
    public Nullable<DateTime> ScrollTo { get; set; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    A System.Nullable<> value that represents the scroll position in the time popup list. The default value is null.

    Remarks

    The ScrollTo property determines the initial scroll position of the time popup list. When set, the time popup will scroll to the specified time value, making it visible in the dropdown. If the specified time is not available in the popup list or if no value is provided, the component will use this property to set the scroll position.

    Examples
    <SfDateTimePicker TValue="DateTime?" ScrollTo="@ScrollPosition">
    </SfDateTimePicker>
    
    @code {
        DateTime? ScrollPosition = new DateTime(2024, 1, 1, 14, 30, 0);
    }

    Step

    Gets or sets the time interval between adjacent time values in the time popup list of the SfDateTimePicker<TValue> component.

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

    An int value that specifies the time interval in minutes between two adjacent time values in the time popup list. The default value is 30 minutes.

    Remarks

    The Step property controls the granularity of time selection in the dropdown list. For example, if set to 30 minutes, the time options will appear as 00:00, 00:30, 01:00, 01:30, and so on. Smaller values provide finer time selection granularity, while larger values reduce the number of available options in the dropdown. The step value must be a positive integer representing minutes.

    Examples
    <SfDateTimePicker TValue="DateTime?" Step="15">
    </SfDateTimePicker>
    
    <!-- This creates time intervals of 15 minutes: 00:00, 00:15, 00:30, 00:45, etc. -->

    TimeFormat

    Gets or sets the format of the time value to be displayed in the time popup list of the SfDateTimePicker<TValue> component.

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

    A string value that specifies the time format pattern for the time popup list. The default value is null.

    Remarks

    The TimeFormat property allows you to customize how time values appear in the dropdown list. You can use standard .NET DateTime format strings such as "HH:mm", "hh:mm tt", "H:mm", etc. If not specified, the component will use the default time format based on the current culture. This property only affects the display format in the time popup list and does not change the actual value format.

    Examples
    <SfDateTimePicker TValue="DateTime?" TimeFormat="HH:mm">
    </SfDateTimePicker>
    
    <!-- Displays time in 24-hour format: 09:30, 14:45, etc. -->
    
    <SfDateTimePicker TValue="DateTime?" TimeFormat="hh:mm tt">
    </SfDateTimePicker>
    
    <!-- Displays time in 12-hour format with AM/PM: 09:30 AM, 02:45 PM, etc. -->

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder
    Overrides
    Syncfusion.Blazor.Toolkit.Calendars.SfDatePicker<TValue>.BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder)

    ShowDatePopupAsync()

    Opens the date picker popup to show the calendar for date selection.

    Declaration
    public Task ShowDatePopupAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Remarks

    This method programmatically opens the calendar popup, allowing users to select a date. It's useful for implementing custom UI behaviors or keyboard shortcuts that should open the date picker.

    Examples

    Opening the date popup programmatically:

    @ref SfDateTimePicker<DateTime> dateTimePicker;
    
    private async Task OpenCalendar()
    {
        await dateTimePicker.ShowDatePopupAsync();
    }

    ShowTimePopupAsync()

    Opens the time picker popup to show the time selection list.

    Declaration
    public Task ShowTimePopupAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Remarks

    This method programmatically opens the time selection popup, displaying a list of available time options based on the configured step interval. The time icon is also activated to reflect the popup state. It's useful for implementing custom behaviors that need to show the time picker.

    Examples

    Opening the time popup programmatically:

    @ref SfDateTimePicker<DateTime> dateTimePicker;
    
    private async Task OpenTimeList()
    {
        await dateTimePicker.ShowTimePopupAsync();
    }

    Implements

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