Class RangeBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
RangeBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class RangeBuilder : ControlBuilder
Constructors
RangeBuilder()
Declaration
RangeBuilder(List<Range>)
Declaration
public RangeBuilder(List<Range> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Range> |
collection |
|
Methods
Add()
Declaration
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
DataSource(Action<DataManagerBuilder>)
Declaration
public RangeBuilder DataSource(Action<DataManagerBuilder> dataSource)
Parameters
Type |
Name |
Description |
System.Action<Syncfusion.EJ2.DataManagerBuilder> |
dataSource |
|
Returns
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
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
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
Show/Hide the field of the datasource as header.
Declaration
public RangeBuilder ShowFieldAsHeader(bool showFieldAsHeader)
Parameters
Type |
Name |
Description |
System.Boolean |
showFieldAsHeader |
|
Returns
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
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