menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScheduleResourceBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScheduleResourceBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ScheduleResourceBuilder
    Namespace: Syncfusion.EJ2.Schedule
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ScheduleResourceBuilder : ControlBuilder

    Constructors

    ScheduleResourceBuilder()

    Declaration
    public ScheduleResourceBuilder()

    ScheduleResourceBuilder(List<ScheduleResource>)

    Declaration
    public ScheduleResourceBuilder(List<ScheduleResource> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<ScheduleResource> collection

    Methods

    Add()

    Declaration
    public void Add()

    AllowMultiple(Boolean)

    When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the selected resources.

    Declaration
    public ScheduleResourceBuilder AllowMultiple(bool allowMultiple)
    Parameters
    Type Name Description
    System.Boolean allowMultiple
    Returns
    Type
    ScheduleResourceBuilder

    ColorField(String)

    It maps the color field from the dataSource, which is used to specify colors for the resources.

    Declaration
    public ScheduleResourceBuilder ColorField(string colorField)
    Parameters
    Type Name Description
    System.String colorField
    Returns
    Type
    ScheduleResourceBuilder

    CssClassField(String)

    It maps the cssClass field from the dataSource, which is used to specify different styles to each resource appointments.

    Declaration
    public ScheduleResourceBuilder CssClassField(string cssClassField)
    Parameters
    Type Name Description
    System.String cssClassField
    Returns
    Type
    ScheduleResourceBuilder

    DataSource(Action<DataManagerBuilder>)

    Declaration
    public ScheduleResourceBuilder DataSource(Action<DataManagerBuilder> dataSource)
    Parameters
    Type Name Description
    System.Action<Syncfusion.EJ2.DataManagerBuilder> dataSource
    Returns
    Type
    ScheduleResourceBuilder

    DataSource(Object)

    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 ScheduleResourceBuilder DataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource
    Returns
    Type
    ScheduleResourceBuilder

    EndHourField(String)

    It maps the endHour field from the dataSource, which is used to specify different work end hour for each resources.

    Declaration
    public ScheduleResourceBuilder EndHourField(string endHourField)
    Parameters
    Type Name Description
    System.String endHourField
    Returns
    Type
    ScheduleResourceBuilder

    ExpandedField(String)

    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 ScheduleResourceBuilder ExpandedField(string expandedField)
    Parameters
    Type Name Description
    System.String expandedField
    Returns
    Type
    ScheduleResourceBuilder

    Field(String)

    A value that binds to the resource field of event object.

    Declaration
    public ScheduleResourceBuilder Field(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type
    ScheduleResourceBuilder

    GroupIDField(String)

    It maps the groupID field from the dataSource, which is used to specify under which parent resource, the child should be grouped.

    Declaration
    public ScheduleResourceBuilder GroupIDField(string groupIDField)
    Parameters
    Type Name Description
    System.String groupIDField
    Returns
    Type
    ScheduleResourceBuilder

    IdField(String)

    It maps the id field from the dataSource and is used to uniquely identify the resources.

    Declaration
    public ScheduleResourceBuilder IdField(string idField)
    Parameters
    Type Name Description
    System.String idField
    Returns
    Type
    ScheduleResourceBuilder

    Name(String)

    It represents a unique resource name for differentiating various resource objects while grouping.

    Declaration
    public ScheduleResourceBuilder Name(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type
    ScheduleResourceBuilder

    Query(String)

    Defines the external query that will be executed along with the data processing.

    Declaration
    public ScheduleResourceBuilder Query(string query)
    Parameters
    Type Name Description
    System.String query
    Returns
    Type
    ScheduleResourceBuilder

    StartHourField(String)

    It maps the startHour field from the dataSource, which is used to specify different work start hour for each resources.

    Declaration
    public ScheduleResourceBuilder StartHourField(string startHourField)
    Parameters
    Type Name Description
    System.String startHourField
    Returns
    Type
    ScheduleResourceBuilder

    TextField(String)

    It maps the text field from the dataSource, which is used to specify the resource names.

    Declaration
    public ScheduleResourceBuilder TextField(string textField)
    Parameters
    Type Name Description
    System.String textField
    Returns
    Type
    ScheduleResourceBuilder

    Title(String)

    It holds the title of the resource field to be displayed on the schedule event editor window.

    Declaration
    public ScheduleResourceBuilder Title(string title)
    Parameters
    Type Name Description
    System.String title
    Returns
    Type
    ScheduleResourceBuilder

    WorkDaysField(String)

    It maps the working days field from the dataSource, which is used to specify different working days for each resources.

    Declaration
    public ScheduleResourceBuilder WorkDaysField(string workDaysField)
    Parameters
    Type Name Description
    System.String workDaysField
    Returns
    Type
    ScheduleResourceBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved