Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 1.74 KB

kb-chartview-display-datarow-information-in-trackballinfotemplate.md

File metadata and controls

47 lines (41 loc) · 1.74 KB
title page_title description type slug position tags ticketid res_type
How to Display DataTable DataRow Information in TrackBallInfoTemplate
Displaying DataTable DataRow Data in Series's TrackBallInfoTemplate
This article explains how to bind DataRow information in TrackBallInfoTemplate.
how-to
kb-chartview-datarow-info-in-trackballinfotemplate
0
chartview, trackballinfotemplate, datarow
1588674
kb

Environment

Product Version 2022.3.1109
Product RadChartView for WPF

Description

How to display DataTable DataRow information in the TrackBallInfoTemplate properties of the [chart view series]({%slug radchartview-series-chartseries%}).

Solution

To display the values of the DataRow, you can use the DataItem property of the DataPoint instance. The DataPoint comes from the DataPointInfo object that is generated for each series entry. The DataItem will be of type DataRow and you can use the square brackets syntax to choose which values are going to be displayed.

[XAML] Displaying DataTable DataRow information in TrackBallInfoTemplate

{{region kb-chartview-datarow-info-in-trackballinfotemplate-0}} <telerik:PointSeries ItemsSource="{Binding DataTable.DefaultView}"> telerik:PointSeries.TrackBallInfoTemplate </telerik:PointSeries.TrackBallInfoTemplate> </telerik:PointSeries> {{endregion}}