Skip to main content
A newer version of this page is available. .

BootstrapWebClientUIWidget.DataSource Property

Gets or sets the object from which a data-bound widget retrieves its list of data items.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v19.1.dll

Declaration

public override object DataSource { get; set; }

Property Value

Type Description
Object

An object that represents the widget’s data source.

Remarks

The example below demonstrates how to use the DataSource property for the BootstrapChart control:

<dx:BootstrapChart ID="Chart" runat="server" />

Binding the chart to a data source is performed using the following code snippet:

protected void Page_Init(object sender, EventArgs e) {
    ChartData data = new ChartData();
    Chart.DataSource = data.StaticListDescendingDates();
    ...
    Chart.DataBind();
}

Note

Online Demo: Charts - Data Binding

See Also