How can I Show Trackball for each series?
For i = 0 To Me.RadListView1.Items.Count - 1
If RadListView1.Items(i).CheckState = Telerik.WinControls.Enumerations.ToggleState.On Then
Dim lii As Integer = RadListView1.Items(i).Value
Dim liText As String = RadListView1.Items(i).Text
''SingleHistory = MeasureWS.SingleHistory(lii.ToString, TextBoxStart.Text, TextBoxEnd.Text, "120")
SingleHistory = MeasureWS.SingleHistory(lii.ToString, "", TextBoxStart.Text, TextBoxEnd.Text, "120")
Dim LineSeriesY As New LineSeries()
LineSeriesY.LegendTitle = liText
'LineSeriesY.Name = liText
Dim LineSeriesX As New LinearAxis()
LineSeriesX.HorizontalLocation = AxisHorizontalLocation.Left
LineSeriesX.AxisType = AxisType.Second
'LineSeriesX.Title = ""
LineSeriesY.VerticalAxis = LineSeriesX
LineSeriesY.HorizontalAxis = horizontalAxis
RadChartView1.Series.Add(LineSeriesY)
LineSeriesY.CategoryMember = "DateTime"
LineSeriesY.ValueMember = "PV"
LineSeriesY.DataSource = SingleHistory
'Form2.DataGridView1.DataSource = SingleHistory
Dim controler As New ChartTrackballController()
AddHandler controler.TextNeeded, AddressOf controler_TextNeeded
RadChartView1.Controllers.Add(controler)
End If
Next
Private Sub controler_TextNeeded(sender As Object, e As TextNeededEventArgs)
Dim dataPoint As CategoricalDataPoint = TryCast(e.Points(0).DataPoint, CategoricalDataPoint)
e.Text = String.Format("{0} : {1}", dataPoint.Category, dataPoint.Value)
End Sub
For i = 0 To Me.RadListView1.Items.Count - 1
If RadListView1.Items(i).CheckState = Telerik.WinControls.Enumerations.ToggleState.On Then
Dim lii As Integer = RadListView1.Items(i).Value
Dim liText As String = RadListView1.Items(i).Text
''SingleHistory = MeasureWS.SingleHistory(lii.ToString, TextBoxStart.Text, TextBoxEnd.Text, "120")
SingleHistory = MeasureWS.SingleHistory(lii.ToString, "", TextBoxStart.Text, TextBoxEnd.Text, "120")
Dim LineSeriesY As New LineSeries()
LineSeriesY.LegendTitle = liText
'LineSeriesY.Name = liText
Dim LineSeriesX As New LinearAxis()
LineSeriesX.HorizontalLocation = AxisHorizontalLocation.Left
LineSeriesX.AxisType = AxisType.Second
'LineSeriesX.Title = ""
LineSeriesY.VerticalAxis = LineSeriesX
LineSeriesY.HorizontalAxis = horizontalAxis
RadChartView1.Series.Add(LineSeriesY)
LineSeriesY.CategoryMember = "DateTime"
LineSeriesY.ValueMember = "PV"
LineSeriesY.DataSource = SingleHistory
'Form2.DataGridView1.DataSource = SingleHistory
Dim controler As New ChartTrackballController()
AddHandler controler.TextNeeded, AddressOf controler_TextNeeded
RadChartView1.Controllers.Add(controler)
End If
Next
Private Sub controler_TextNeeded(sender As Object, e As TextNeededEventArgs)
Dim dataPoint As CategoricalDataPoint = TryCast(e.Points(0).DataPoint, CategoricalDataPoint)
e.Text = String.Format("{0} : {1}", dataPoint.Category, dataPoint.Value)
End Sub