Class ScheduleDataProvider
Provides an empty implementation of IScheduleDataProvider. The implementation is done through virtual methods. You can then derive this class and through its overrides, set up an IScheduleDataProvider. See the ArrayListDataProvider class in the ScheduleSample sample.
Implements
Inherited Members
Namespace: Syncfusion.Schedule
Assembly: Syncfusion.Schedule.Base.dll
Syntax
public class ScheduleDataProvider : IScheduleDataProvider
Constructors
ScheduleDataProvider()
Initializes a new instance of the ScheduleDataProvider class.
Declaration
public ScheduleDataProvider()
Properties
IsDirty
Gets or sets a value indicating whether data source is modified or not.
Declaration
public virtual bool IsDirty { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
LabelList
Gets or sets the list for the LabelValue options.
Declaration
protected ListObjectList LabelList { get; set; }
Property Value
| Type |
|---|
| ListObjectList |
LocationList
Gets or sets the list for the LocationValue options.
Declaration
protected ListObjectList LocationList { get; set; }
Property Value
| Type |
|---|
| ListObjectList |
MarkerList
Gets or sets the list for the MarkerValue options.
Declaration
protected ListObjectList MarkerList { get; set; }
Property Value
| Type |
|---|
| ListObjectList |
Owners
Gets or sets resources collection.
Declaration
public IScheduleResourceList Owners { get; set; }
Property Value
| Type |
|---|
| IScheduleResourceList |
ReminderList
Gets or sets the list for the ReminderValue options.
Declaration
protected ListObjectList ReminderList { get; set; }
Property Value
| Type |
|---|
| ListObjectList |
SaveOnCloseBehaviorAction
Gets or sets whether CommitChanges is called when the ScheduleControl is disposed.
Declaration
public SaveOnCloseBehavior SaveOnCloseBehaviorAction { get; set; }
Property Value
| Type |
|---|
| SaveOnCloseBehavior |
Methods
AddItem(IScheduleAppointment)
Adds IScheduleAppointment passed in. No implementation.
Declaration
public virtual void AddItem(IScheduleAppointment item)
Parameters
| Type | Name | Description |
|---|---|---|
| IScheduleAppointment | item | The IScheduleAppointment to be added. |
CommitChanges()
Commits the changes made in item. No implementation.
Declaration
public virtual void CommitChanges()
GetLabels()
Gets the list for the LabelValue options.
Declaration
public virtual ILookUpObjectList GetLabels()
Returns
| Type | Description |
|---|---|
| ILookUpObjectList | LabelValue list. |
GetLocations()
Gets the list for the LocationValue options.
Declaration
public virtual ILookUpObjectList GetLocations()
Returns
| Type | Description |
|---|---|
| ILookUpObjectList | LocationValue list. |
GetMarkers()
Gets the list for the MarkerValue options.
Declaration
public virtual ILookUpObjectList GetMarkers()
Returns
| Type | Description |
|---|---|
| ILookUpObjectList | MarkerValue list. |
GetOwners()
Gets resources collection.
Declaration
public virtual IScheduleResourceList GetOwners()
Returns
| Type | Description |
|---|---|
| IScheduleResourceList | The resources collection. |
GetReminders()
Gets the list for the ReminderValue options.
Declaration
public virtual ILookUpObjectList GetReminders()
Returns
| Type | Description |
|---|---|
| ILookUpObjectList | ReminderValue list. |
GetSchedule(DateTime, DateTime)
Gets the schedule added in dates passed in. No implementation.
Declaration
public virtual IScheduleAppointmentList GetSchedule(DateTime startDate, DateTime endDate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | startDate | The first date. |
| System.DateTime | endDate | The second date. |
Returns
| Type | Description |
|---|---|
| IScheduleAppointmentList | An IScheduleAppointmentList holding the schedule items between the given dates. |
GetSchedule(DateTime, DateTime, Int32)
Gets the schedule added in dates passed in for the respective owner. No implementation.
Declaration
public virtual IScheduleAppointmentList GetSchedule(DateTime startDate, DateTime endDate, int owner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | startDate | The first date. |
| System.DateTime | endDate | The second date. |
| System.Int32 | owner | The owner. |
Returns
| Type | Description |
|---|---|
| IScheduleAppointmentList | An IScheduleAppointmentList holding the schedule items for a particular owner between the given dates. |
GetScheduleForDay(DateTime)
Gets the schedule for the day passed in. No implementation.
Declaration
public virtual IScheduleAppointmentList GetScheduleForDay(DateTime day)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | day | The DateTime |
Returns
| Type | Description |
|---|---|
| IScheduleAppointmentList | An IScheduleAppointmentList holding the schedule items for the given date. |
GetScheduleForDay(DateTime, Int32)
Gets the schedule for the day passed in for the respective owner. No implementation.
Declaration
public virtual IScheduleAppointmentList GetScheduleForDay(DateTime day, int owner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | day | The given date. |
| System.Int32 | owner | The owner. |
Returns
| Type | Description |
|---|---|
| IScheduleAppointmentList | An IScheduleAppointmentList holding the schedule items for a particular owner on the given date. |
InitLists()
Initiates the default drop lists for entering IScheduleAppointment data.
Declaration
public virtual void InitLists()
Remarks
You can override this method to provide customized droplists.
NewScheduleAppointment()
Returns a default ScheduleAppointment.
Declaration
public virtual IScheduleAppointment NewScheduleAppointment()
Returns
| Type | Description |
|---|---|
| IScheduleAppointment | New ScheduleAppointment. |
NewScheduleAppointmentList()
Returns a default ScheduleAppointmentList.
Declaration
public virtual IScheduleAppointmentList NewScheduleAppointmentList()
Returns
| Type | Description |
|---|---|
| IScheduleAppointmentList | New ScheduleAppointmentList. |
NewScheduleResource()
Returns a default ScheduleResource.
Declaration
public virtual IScheduleResource NewScheduleResource()
Returns
| Type | Description |
|---|---|
| IScheduleResource | New ScheduleResource. |
NewScheduleResourceList()
Returns a default ScheduleAppointmentList.
Declaration
public virtual IScheduleResourceList NewScheduleResourceList()
Returns
| Type | Description |
|---|---|
| IScheduleResourceList | New ScheduleAppointment. |
RemoveItem(IScheduleAppointment)
Removes an item. No implementation.
Declaration
public virtual void RemoveItem(IScheduleAppointment item)
Parameters
| Type | Name | Description |
|---|---|---|
| IScheduleAppointment | item | The IScheduleAppointment to be removed. |
SaveModifiedItem(IScheduleAppointment, IScheduleAppointment)
Saves the modified item. No implementation.
Declaration
public virtual void SaveModifiedItem(IScheduleAppointment appModifiedItem, IScheduleAppointment appOriginalItem)
Parameters
| Type | Name | Description |
|---|---|---|
| IScheduleAppointment | appModifiedItem | The modified IScheduleAppointment. |
| IScheduleAppointment | appOriginalItem | The original IScheduleAppointment. |