menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FieldStartTime - API Reference

    Show / Hide Table of Contents

    Class FieldStartTime

    A class that represents the event start time fields to be mapped from dataSource within the ScheduleField tag directive.

    Inheritance
    System.Object
    SfBaseComponent
    EventSettingsField
    FieldStartTime
    Inherited Members
    EventSettingsField.OnParametersSetAsync()
    EventSettingsField.Default
    EventSettingsField.Name
    EventSettingsField.Title
    EventSettingsField.Validation
    SfBaseComponent.OnAfterRenderAsync(Boolean)
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    Namespace: Syncfusion.Blazor.Schedule
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class FieldStartTime : EventSettingsField
    Remarks

    You can map the custom field names, labels and validation for event start time fields by specifying value to corresponding property in FieldStartTime tag directive.

    Examples
    <SfSchedule TValue="AppointmentData">
        <ScheduleEventSettings TValue="AppointmentData" DataSource="@DataSource">
            <ScheduleField>
                <FieldStartTime Name="DepartureTime" Title="Departure Time" Validation="@validationRules"></FieldStartTime>
            </ScheduleField>
        </ScheduleEventSettings>
    </SfSchedule>
    @code{
        ValidationRules validationRules = new ValidationRules { Required = true };
        List<AppointmentData> DataSource = new List<AppointmentData>
        {
            new AppointmentData { Id = 1, Subject = "Meeting", DepartureTime = DateTime.Today.Date.AddHours(9).AddMinutes(30), EndTime = DateTime.Today.Date.AddHours(11) }
        };
        public class AppointmentData
        {
            public int Id { get; set; }
            public string Subject { get; set; }
            public DateTime DepartureTime { get; set; }
            public DateTime EndTime { get; set; }
        }
    }

    Constructors

    FieldStartTime()

    Declaration
    public FieldStartTime()

    Methods

    OnInitializedAsync()

    Triggers while initial rendering of the component.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Task.

    Overrides
    EventSettingsField.OnInitializedAsync()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved