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