Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Dimension on value cell
posted

Greetings

For a project involving charts & pivots i'm trying to see if igniteui is the toolkit we need.

However i'm having trouble with the folliwing:

In a pivot grid containing data, whenever an user clicks on e cell i need to now the column and row dimension. I've seen an example on the forum on which you can get the label of the row of column but i also need the level in the hierarchy.

Using a custom aggregator i found out you can acces cellmetadata but this doesn't seem to contain what i need.

var measure = {
                caption: n, name: n,
                aggregator: function (items, cellMetadata) {
                    console.log(cellMetadata);
                    return "<span data-rowdimension='" + rowmeasureheresomehow + "' data-rowdimensionlabel='"+ rowdimensionvalueheresomehow +"'>" + sumAggregator(items, cellMetadata) + "</span>";
                }
            };

Thanks in advance

Parents Reply Children
No Data