menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class RangeBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    RangeBuilder
    Namespace: Syncfusion.EJ2.Spreadsheet
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class RangeBuilder : ControlBuilder

    Constructors

    RangeBuilder()

    Declaration
    public RangeBuilder()

    RangeBuilder(List<Range>)

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

    Methods

    Add()

    Declaration
    public void Add()

    Address(String)

    Specifies the address for updating the dataSource or template.

    Declaration
    public RangeBuilder Address(string address)
    Parameters
    Type Name Description
    System.String address
    Returns
    Type
    RangeBuilder

    DataSource(Action<DataManagerBuilder>)

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

    DataSource(Object)

    Specifies the data as JSON / Data manager to the sheet.

    Declaration
    public RangeBuilder DataSource(object dataSource)
    Parameters
    Type Name Description
    System.Object dataSource
    Returns
    Type
    RangeBuilder

    FieldsOrder(String[])

    By default, when a sheet is bound to a data source, columns are assigned to data source fields sequentially. This means that the first data field is assigned to Column A, the second to Column B, and so on. You can customize these assignments by specifying the field names in the desired column order using the 'fieldsOrder' property.

    Declaration
    public RangeBuilder FieldsOrder(string[] fieldsOrder)
    Parameters
    Type Name Description
    System.String[] fieldsOrder
    Returns
    Type
    RangeBuilder

    Query(String)

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

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

    ShowFieldAsHeader(Boolean)

    Show/Hide the field of the datasource as header.

    Declaration
    public RangeBuilder ShowFieldAsHeader(bool showFieldAsHeader)
    Parameters
    Type Name Description
    System.Boolean showFieldAsHeader
    Returns
    Type
    RangeBuilder

    StartCell(String)

    Specifies the start cell from which the datasource will be populated.

    Declaration
    public RangeBuilder StartCell(string startCell)
    Parameters
    Type Name Description
    System.String startCell
    Returns
    Type
    RangeBuilder

    Template(String)

    Template helps to compiles the given HTML String (or HTML Element ID) into HtML Element and append to the Cell.

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