Telerik & Kendo UI R2 2021 Release Webinars on May 18-20. Save Your Seat!
New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to local data
- Launch Theme Builder
- Blue Opal
- Bootstrap v3
- High Contrast
- Material Black
- Metro Black
- Office 365
Also available for:API REFERENCE
The Telerik Core Range Bar chart can be instructed to display data from local data storage using its built-in data-binding capabilities.
There are two ways to bind the chart:
- Server - the chart will bind to a supplied model
- Ajax - the chart will perform Ajax requests to populate its series.
You can learn from this demo how to bind the chart using the server approach. You need to create an action method and pass the RangeBarChartsLocalDataViewModel list model. After that you should configure the data bound FromA, ToA, FromB and ToB fields for the Series. Note that the view has to be strongly typed so that the chart is able to load its data.