[]
        
(Showing Draft Content)

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

Bind Method

Bind(string, string, string)

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

Declaration
public FlexPieBaseBuilder<T, TControl, TBuilder> Bind(string nameProperty, string valueProperty, string readActionUrl)
Parameters
Type Name Description
string nameProperty

Gets or sets the name of the property that contains the name of the data item.

string valueProperty

The name of the property that contains the Y values.

string readActionUrl

The url of the action which is used for reading data

Returns
Type Description
FlexPieBaseBuilder<T, TControl, TBuilder>

Current builder

Bind(string, string, IEnumerable<T>)

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

Declaration
public FlexPieBaseBuilder<T, TControl, TBuilder> Bind(string nameProperty, string valueProperty, IEnumerable<T> sourceCollection = null)
Parameters
Type Name Description
string nameProperty

Gets or sets the name of the property that contains the name of the data item.

string valueProperty

The name of the property that contains the Y values.

IEnumerable<T> sourceCollection

The data source

Returns
Type Description
FlexPieBaseBuilder<T, TControl, TBuilder>

Current builder