TooltipAppearance display 2 items

3 posts, 1 answers
  1. Joseph
    Joseph avatar
    29 posts
    Member since:
    Jun 2014

    Posted 07 Sep Link to this post

    I'm trying to display both percentage and amount with a break point in between.  This is what i tried and a couple more, but they are not working.  Please help.

    ClickSeries = New PieSeries

    ClickSeries.TooltipsAppearance.ClientTemplate = "#= kendo.format(\'{0:P0}\', percentage)#<br />#={0:N0}#"

  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 08 Sep Link to this post

    Hello Joseph,

    The second line is an invalid format declaration, you need to also add the kendo.format() function and an argument.

    Here is an example that works fine and the effect is shown in the attached result.png:

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Dim ClickSeries As PieSeries = New PieSeries
            ClickSeries.TooltipsAppearance.ClientTemplate = "#= kendo.format(\'{0:P0}\', percentage)#<br />#=kendo.format(\'{0:N0}\', value)#<br />#=value#"
            RadHtmlChart1.PlotArea.Series.Add(ClickSeries)
            ClickSeries.SeriesItems.Add(0.1)
            ClickSeries.SeriesItems.Add(0.4)
            ClickSeries.SeriesItems.Add(0.8)
        End If
     
    End Sub

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joseph
    Joseph avatar
    29 posts
    Member since:
    Jun 2014

    Posted 08 Sep Link to this post

    Thank You that worked.
Back to Top