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
145
Conditional Formatting Dimension Header
posted

Is there any way to conditionally format an dimension header on the igPivotGrid, ie. change it's background color?

Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Steven,

    You can bind to the igPivotGrid.pivotGridHeadersRendered event and get access to the headers TABLE DOM from where you can apply your formatting logic.

    Here is an example:

    $("#pivotGrid").on("igpivotgridpivotgridheadersrendered", function(evt, ui) {

    ui.table.find("[data-member='0'][data-tuple='1']").css("background-color", "green");

    });

    Note: In this case you need to know the data member and data tuple indexes.

    Best regards,
    Martin Pavlov
    Infragistics, Inc.

Children
No Data