Arithmetic calculations in kendo format

2 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    1 posts
    Member since:
    Nov 2014

    Posted 12 Dec 2014 Link to this post

    Hi Team,

    I am displaying a pie chart in ASP.Net MVC.

    .Series(series =>
                series.Pie(new dynamic[] {
                    new {category="Forms Created",value=Model.value1,color="#9de219"},
                    new {category="Forms Allowed",value=Model.value2,color="#50dd48"}

    .Tooltip(tooltip => tooltip
                        .Template("#= category # - #= kendo.format('{0}', value)#")

    Now the tool tip is displaying the value of corresponding category.

    I would like to display value of (category 1 value - category 2 value) in my tool tip.

    Could you advise is this is possible to format in kendo?

  2. Hristo Germanov
    Hristo Germanov avatar
    703 posts

    Posted 16 Dec 2014 Link to this post

    Hi Gopinath,

    In the tooltip template you have access to the and you can output all values that you want. You can pass the item index to the series and then you can access the indexes around the hovered item.

    I hope this helps.

    Hristo Germanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET AJAX banner
Back to Top