However, I have now created several of these charts all exactly the same setup but with different data sources (Quantity, Sales Volume, Value, Margin etc)
These are all placed into sliding zones in a rad splitter. Visually this is very appealing. I have set the textbox.text to being transparent so that only the line shows over gridlines and want to show these as a toolitp. I recreated the onItemDataBound event for each graph using the event as below. But only the original chart renders the tooltip.(RadChart3)
I have a tooltip manager on the page with autotooltipifier set to true - so picks up all controls on the page. But still no joy. Am going round in circles
Can you help?
Imports
Telerik.Web.UI
Imports System.Data
Imports System.Data.OleDb
Imports System.Data.SqlClient
Imports System.Configuration
Imports Telerik.Charting.ChartItemDataBoundEventArgs
.................
Protected Sub RadChart1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart1.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip = (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": Sales Qty: " & e.SeriesItem.YValue
End Sub
Protected Sub RadChart2_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart2.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip += (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": Sales Vol sq.ft: " & e.SeriesItem.YValue
End Sub
Protected Sub RadChart3_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart3.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip += (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": Sales £'s: " & e.SeriesItem.YValue
End Sub
Protected Sub RadChart4_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart4.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip += (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": C.O.S. £'s: " & e.SeriesItem.YValue
End Sub
Protected Sub RadChart5_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart5.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip += (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": Profit £'s: " & e.SeriesItem.YValue End Sub
Protected Sub RadChart6_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart6.ItemDataBound
e.SeriesItem.ActiveRegion.Tooltip += (
DirectCast(e.DataItem, DataRowView))("FNInvOrderDate").ToString() & ": % Margin: " & e.SeriesItem.YValue
End Sub