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
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