[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.FlexChartCoreBuilder-3.Bind

Bind Method

Bind(string, string)

Bind data with specified x data field name and the url of the action which is used for reading data.

Declaration
public TBuilder Bind(string xDataFieldName, string readActionUrl)
Parameters
Type Name Description
string xDataFieldName

Sets the name of the x data field.

string readActionUrl

The url of the action which is used for reading data

Returns
Type Description
TBuilder

Current builder

Bind(string, string, string)

Bind data with specified x data field name, value property and the url of the action which is used for reading data.

Declaration
public TBuilder Bind(string xDataFieldName, string valueProperty, string readActionUrl)
Parameters
Type Name Description
string xDataFieldName

Sets the name of the x data field.

string valueProperty

Sets the name of the value data field.

string readActionUrl

The url of the action which is used for reading data

Returns
Type Description
TBuilder

Current builder

Bind(string, IEnumerable<T>)

Bind data with specified x data field name and a data source.

Declaration
public TBuilder Bind(string xDataFieldName, IEnumerable<T> sourceCollection)
Parameters
Type Name Description
string xDataFieldName

Sets the name of the x data field.

IEnumerable<T> sourceCollection

The data source

Returns
Type Description
TBuilder

Bind(string, string, IEnumerable<T>)

Bind data with specified x data field name and value property of the data source.

Declaration
public TBuilder Bind(string xDataFieldName, string valueProperty, IEnumerable<T> sourceCollection)
Parameters
Type Name Description
string xDataFieldName

Sets the name of the x data field.

string valueProperty

Sets the name of the value data field.

IEnumerable<T> sourceCollection

The data source

Returns
Type Description
TBuilder

Current builder