Class ScheduleToolBarNext
Represents a toolbar tool that enables navigation to the next date range within the SfSchedule<TValue> component by rendering the Next button.
Inherited Members
Namespace: Syncfusion.Blazor.Schedule
Assembly: Syncfusion.Blazor.dll
Syntax
public class ScheduleToolBarNext : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
This component is intended to be used as a child of ScheduleToolBar, which itself must be placed inside an SfSchedule<TValue>. When declared, it registers a next navigation segment with the parent toolbar so that the header renderer reuses the built-in next navigation logic for moving to the next date range based on the current view (e.g., day, week, month).
Examples
Demonstrates how to configure the ScheduleToolBarNext to declare the next navigation tool in the Scheduler.
<SfSchedule TValue="AppointmentData" @bind-SelectedDate="@SelectedDate">
<ScheduleToolBar>
<ScheduleToolBarNext />
</ScheduleToolBar>
</SfSchedule>
@code {
public class AppointmentData
{
public string Subject { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
}
private DateTime SelectedDate { get; set; } = DateTime.Today;
}
Constructors
ScheduleToolBarNext()
Declaration
public ScheduleToolBarNext()
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Initializes the ScheduleToolBarNext component during the component initialization phase.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |
Overrides
Remarks
This method performs the following initialization tasks:
- Calls the base OnInitializedAsync method
- Validates that the component is used within a ScheduleToolBar component and throws an InvalidOperationException if not
- Registers this next navigation toolbar item with the parent ScheduleToolBar
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown when ScheduleToolBarNext is not used within a ScheduleToolBar component. |