Class FieldEndTime
A class that represents the event end time fields to be mapped from dataSource within the ScheduleField tag directive.
Inherited Members
Namespace: Syncfusion.Blazor.Schedule
Assembly: Syncfusion.Blazor.dll
Syntax
public class FieldEndTime : EventSettingsField
Remarks
You can map the custom field names, labels and validation for event end time fields by specifying value to corresponding property in FieldEndTime tag directive.
Examples
<SfSchedule TValue="AppointmentData">
<ScheduleEventSettings TValue="AppointmentData" DataSource="@DataSource">
<ScheduleField>
<FieldEndTime Name="ArrivalTime" Title="Arrival Time" Validation="@validationRules"></FieldEndTime>
</ScheduleField>
</ScheduleEventSettings>
</SfSchedule>
@code{
ValidationRules validationRules = new ValidationRules { Required = true };
List<AppointmentData> DataSource = new List<AppointmentData>
{
new AppointmentData { Id = 1, Subject = "Meeting", StartTime = DateTime.Today.Date.AddHours(9).AddMinutes(30), ArrivalTime = DateTime.Today.Date.AddHours(11) }
};
public class AppointmentData
{
public int Id { get; set; }
public string Subject { get; set; }
public DateTime StartTime { get; set; }
public DateTime ArrivalTime { get; set; }
}
}
Constructors
FieldEndTime()
Declaration
public FieldEndTime()
Methods
OnInitializedAsync()
Triggers while initial rendering of the component.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task. |