menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FieldSubject - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FieldSubject

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

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

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

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

    Constructors

    FieldSubject()

    Declaration
    public FieldSubject()

    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 - 2025 Syncfusion Inc. All Rights Reserved