Class ScheduleResource
Inheritance
Namespace: Syncfusion.EJ2.Schedule
Assembly: Syncfusion.EJ2.dll
Syntax
public class ScheduleResource : EJTagHelper
Constructors
ScheduleResource()
Declaration
public ScheduleResource()
Properties
AllowMultiple
When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the selected resources.
Declaration
public bool AllowMultiple { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
ColorField
It maps the color
field from the dataSource, which is used to specify colors for the resources.
Declaration
public string ColorField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Color" |
CssClassField
It maps the cssClass
field from the dataSource, which is used to specify different styles to each resource appointments.
Declaration
public string CssClassField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "CssClass" |
DataSource
Assigns the resource dataSource
The data can be passed either as an array of JavaScript objects,
or else can create an instance of DataManager
in case of processing remote data and can be assigned to the dataSource
property.
With the remote data assigned to dataSource, check the available
adaptors to customize the data processing.
Declaration
public object DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
EndHourField
It maps the endHour
field from the dataSource, which is used to specify different work end hour for each resources.
Declaration
public string EndHourField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "EndHour" |
ExpandedField
It maps the expanded
field from the dataSource, which is used to specify whether each resource levels
in timeline view needs to be maintained in an expanded or collapsed state by default.
Declaration
public string ExpandedField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Expanded" |
Field
A value that binds to the resource field of event object.
Declaration
public string Field { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
GroupIDField
It maps the groupID
field from the dataSource, which is used to specify under which parent resource,
the child should be grouped.
Declaration
public string GroupIDField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "GroupID" |
IdField
It maps the id
field from the dataSource and is used to uniquely identify the resources.
Declaration
public string IdField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Id" |
Name
It represents a unique resource name for differentiating various resource objects while grouping.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Query
Defines the external query
that will be executed along with the data processing.
Declaration
public string Query { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StartHourField
It maps the startHour
field from the dataSource, which is used to specify different work start hour for each resources.
Declaration
public string StartHourField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "StartHour" |
TextField
It maps the text
field from the dataSource, which is used to specify the resource names.
Declaration
public string TextField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Text" |
Title
It holds the title of the resource field to be displayed on the schedule event editor window.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
WorkDaysField
It maps the working days field from the dataSource, which is used to specify different working days for each resources.
Declaration
public string WorkDaysField { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "WorkDays" |