New to Telerik UI for WinForms? Start a free 30-day trial

Adapts scheduler appointments for RadGanttView as flat tasks with date-based columns. Retain this provider while it is assigned because the Gantt view keeps a weak reference to it.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class GanttViewIntegrationProvider : IGanttViewDataProvider, IDisposable

Inheritance: objectGanttViewIntegrationProvider

Implements: IDisposableIGanttViewDataProvider

Constructors

Creates the Gantt task source from the scheduler's current appointments and subscribes to scheduler and task-list changes.

C#
public GanttViewIntegrationProvider(RadScheduler scheduler)
Parameters:schedulerRadScheduler

The scheduler whose appointments are exposed; it must not be null and its items must be Appointment instances.

Properties

Gets the task identifier member name, UniqueId.

C#
public string ChildMember { get; }

Implements: IGanttViewDataProvider.ChildMember

Gets or sets the task columns; the initial columns display Summary, Start, and End.

C#
public List<GanttViewTextViewColumn> Columns { get; set; }

Implements: IGanttViewDataProvider.Columns

Gets the bindable source containing the provider's task and link lists.

C#
public object DataSource { get; }

Implements: IGanttViewDataProvider.DataSource

Gets the appointment end member name, End.

C#
public string EndMember { get; }

Implements: IGanttViewDataProvider.EndMember

Gets the task-link list member name, LinksBindingList.

C#
public string LinkDataMember { get; }

Implements: IGanttViewDataProvider.LinkDataMember

Gets the link end-identifier member name, EndId.

C#
public string LinkEndMember { get; }

Implements: IGanttViewDataProvider.LinkEndMember

Gets the link start-identifier member name, StartId.

C#
public string LinkStartMember { get; }

Implements: IGanttViewDataProvider.LinkStartMember

Gets the link type member name, LinkType.

C#
public string LinkTypeMember { get; }

Implements: IGanttViewDataProvider.LinkTypeMember

Gets null because this provider exposes a flat task list.

C#
public string ParentMember { get; }

Implements: IGanttViewDataProvider.ParentMember

Gets null because this provider does not map appointment progress.

C#
public string ProgressMember { get; }

Implements: IGanttViewDataProvider.ProgressMember

Gets the scheduler whose appointments are exposed to the Gantt view.

C#
public RadScheduler Scheduler { get; }

Gets the appointment start member name, Start.

C#
public string StartMember { get; }

Implements: IGanttViewDataProvider.StartMember

Gets the task-list member name, TasksBindingList.

C#
public string TaskDataMember { get; }

Implements: IGanttViewDataProvider.TaskDataMember

Gets the appointment summary member name, Summary.

C#
public string TitleMember { get; }

Implements: IGanttViewDataProvider.TitleMember

Gets the strongly typed task and link source used by this provider and its subclasses.

C#
protected GanttIntegrationDataSource<Appointment, GanttViewIntegrationLinkItem<EventId>> TypeSafeDataSource { get; }

Methods

Removes this provider's event subscriptions from the scheduler and its task list.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Mirrors task-list additions and deletions to the scheduler; item changes and list resets are not handled here.

C#
protected virtual void OnDataItemsListChanged(ListChangedEventArgs e)
Parameters:eListChangedEventArgs

The task-list change details.

Adds a newly added scheduler appointment to the Gantt task list.

C#
protected virtual void OnSchedulerAppointmentAdded(AppointmentAddedEventArgs e)
Parameters:eAppointmentAddedEventArgs

The event data containing the new appointment.

Removes a deleted scheduler appointment from the Gantt task list.

C#
protected virtual void OnSchedulerAppointmentDeleted(SchedulerAppointmentEventArgs e)
Parameters:eSchedulerAppointmentEventArgs

The event data containing the deleted appointment.

Removes the event subscriptions installed by WireEvents().

C#
protected virtual void UnwireEvents()

Subscribes to scheduler, event-provider, and task-list changes so appointment additions and deletions stay synchronized.

C#
protected virtual void WireEvents()