Data Binding of Recurring Events
Expand only the requested range and persist series exceptions explicitly.
Range-based expansion
Store series definitions separately from generated events. Call ngbSchedulerExpandSeries when the requested date range changes. For remote data, expand on the server and return events through dataSource; do not expand those results again.
Generated occurrence metadata identifies the series and original local start. Persist an edited occurrence as an exception; deleting it stores a cancellation. Moved exceptions retain their identity and can appear in a different query range.
2026-10-30 – 2026-11-05
Fri, Oct 30
Sat, Oct 31
Sun, Nov 1
Mon, Nov 2
Tue, Nov 3
Wed, Nov 4
Thu, Nov 5
No changes saved · Requests: 0 · Exceptions: 0
const series: NgbSchedulerSeries = {
id: 'settlement', start: '2026-10-30T09:00:00.000', end: '2026-10-30T10:00:00.000',
timeZone: 'America/Chicago', event: { title: 'Settlement review' },
rule: { frequency: 'daily', interval: 1, count: 12 }, gap: 'skip', fold: 'later'
};
const events = ngbSchedulerExpandSeries([series], range);
// Persist one occurrence change as an exception, then expand again.
const updated = ngbSchedulerSetException(series, event.recurrence!.originalStart, editedEvent);
// Omit editedEvent to cancel that occurrence.
// Configure [series], [seriesMutationHandler] and (seriesMutationComplete)
// for explicit Entire series editing. Persist atomically on your server.
DST, exceptions and limits
This example keeps 09:00–10:00 local wall-clock intent in America/Chicago: UTC times change across DST. Each series explicitly chooses gap skip/reject and fold earlier/later/reject. All-day series retain exclusive calendar dates.
Series changes preserve exceptions by default. If an exception no longer matches the rule, saving fails; reconcile it or explicitly reset exceptions. Entire-series deletion requires confirmation. Configure seriesMutationHandler and handle seriesMutationComplete to persist whole-series changes. The default dialog starts with This occurrence. Entire series uses a separate handler and completion output; it never emits an occurrence write. Changing scope resets the unsaved draft, including custom form values. This and following uses a separate opt-in split transaction, demonstrated on the Basics page. New-series creation and one-off conversion use a separate opt-in transaction handler; see the Basics page example.
Local expansion accepts at most 50 series, 366 days per query, 512 returned events and 100,000 scanned days. It throws on limits instead of returning partial data. Use server expansion for large histories. Applications own authorization, atomic series/exception persistence, retries and conflict checks.
Native controls support Tab, Enter and Space. Cancel/Escape in the appointment editor discards an idle draft. Series authoring is a separate workflow; Save series is explicit.