Hi,
We are using rad-chart for our application and the chart that gets generated is dynamically generated one where in i am trying to add tool tip for the series item by concatneating two string values .The issue is that when i try to add a Newline definition between them i get JS error when the page loads saying "String has not been terminated".But the two string values appears one below the other as expected.PFB the code that generates the above issue.
We are using rad-chart for our application and the chart that gets generated is dynamically generated one where in i am trying to add tool tip for the series item by concatneating two string values .The issue is that when i try to add a Newline definition between them i get JS error when the page loads saying "String has not been terminated".But the two string values appears one below the other as expected.PFB the code that generates the above issue.
for
(int ic = 0; ic < dtv.Count; ic++)
{
ChartSeriesItem seriesItem =
new ChartSeriesItem();
seriesItem.YValue = (
double)dtv[ic]["Settlement"];
seriesItem.Name = "Settlement";
seriesItem.Appearance.Border.Color = Color.Black;
seriesItem.XValue = Convert.ToDouble(dtv[ic]["Date"]);
seriesItem.ActiveRegion.Tooltip = "Date :" + DateTime.FromOADate(Convert.ToDouble(dtv[ic]["Date"])).ToShortDateString() + "" + System.Environment.NewLine + "Price :$" + dtv[ic]["Settlement"].ToString() + "";
RadToolTipManager1.TargetControls.Add(
null, seriesItem.ActiveRegion.Tooltip.ToString(), true);
s0.AddItem(seriesItem);
}
The code has been highligted in green color.
Please let me know where i am wrong.
Thanks & Regards,
Preetam.