This is a migrated thread and some comments may be shown as answers.

Tooltip Problem - dataitem member undefined

1 Answer 69 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 20 Nov 2013, 09:46 PM
It is pretty straight forward, there are plenty of references to using:
@(Html.Kendo().Chart(Model.oeeList)
    .Name("widget-oee-breakdown")
    .Theme("black")
    .DataSource(ds => ds
        .Group(group => group.Add(model => model.resp_id))
    )
    .Series(series =>
    {
        series.Column <double?, string> (model => model.total, categoryExpression: model => model.area_name).Color("White").Name("Downtime").Labels(labels => labels.Visible(false).Format("{0:n2}")).Stack(true);
    })
    .ChartArea(ca => ca
        .Background("transparent")
    )
    .CategoryAxis(axis => axis
        .MajorGridLines(lines => lines.Visible(false))
        .Labels(model => model.Rotation(90))
    )
    .Legend(legend => legend
        .Visible(false)
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Max(100)
        .Line(line => line.Visible(false))
        .MajorGridLines(lines => lines.Visible(false))
        .Labels(false)
    )
    .Tooltip(tooltip => tooltip
        .Visible(true)
        .Template("#= dataItem.resp_name #: #= kendo.format('{0:n2}', value) #")
    )
)
In this forum as well as others.  "dataItem" doesn't return as undefined, but any member I specify does.  In the example above I am using resp_name, which is in the data.  Even if I try to use resp_id, which is what shows if I use series.name instead.  Basically, anything I put after dataItem returns as undefined.  Any ideas??

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 21 Nov 2013, 08:31 AM
Hi Steve,

This is a known issue - when using grouped data it is not possible to reach the original data through the dataItem. The good news is that our developers have managed to address it and the fix is included in Kendo UI Q3 2013 official release. Please upgrade your application to the latest official version (2013.3.1119) and let me know if you still observe any problems. 
 
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Steve
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or