<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>How to highlight a certain member on the grid</h2>
<p>
This example demonstrates how to highlight certain members on the grid
regardless of their position.
</p>
<p>
To highlight members, we use the
<a href="https://www.flexmonster.com/api/customizecell/" target="_blank"
>customizeCell()</a
>
method. For each cell, we check if the cell contains the needed member. If
it does, we add the <code>highlight</code> CSS class to that cell (lines
38-56 in the JavaScript box).
</p>
<p>
In this example, we've highlighted the <code>Canada</code>,
<code>Germany</code>, and <code>Warehouse</code> members.
</p>
<p>
<a href="https://www.flexmonster.com/doc/customizing-grid/" target="_blank"
>Visit our docs to learn more about customizing the grid</a
>.
</p>
</div>
<button onclick="clearCustomizing()">Clear Customizing</button>
<button onclick="startCustomizing()">Start Customizing</button>
<div id="pivot-container"></div>