Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Chart > Zero replaced in series ItemToolTipFormat

Not answered Zero replaced in series ItemToolTipFormat

Feed from this thread
  • Posted on Feb 7, 2012 (permalink)

    Hello,
    
    I have a problem with the ItemToolTipFormat from SeriesDefinition: the format is loaded dynamically from
    database, and some of the formats contain zero. The problem is that zero is always replaced by the Y value,
    being treated as a placeholder. How can I enter zero in the tooltipformat and prevent the automatic
    replace?
    
    Here's my code: seriesMapping.SeriesDefinition.ItemToolTipFormat = string.Format("{0}", col["Description"].ToString()); Thank you, Adrian

    Reply

  • Posted on Feb 7, 2012 (permalink)

    I found the solution, to escape the zero:

      seriesMapping.SeriesDefinition.ItemToolTipFormat = string.Format("{0}", col["Description"].ToString().Replace("0","\\0"));


    Thank you, you can consider the thread closed.
    Adrian


    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Chart > Zero replaced in series ItemToolTipFormat
Related resources for "Zero replaced in series ItemToolTipFormat"

Silverlight Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]