<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div>
<h2>How to show cell content on click</h2>
<p>
This example demonstrates how to show cell content only when the cell is
clicked.
</p>
<p>
Notice the <code>Phone Number</code> column: initially, its content is
partly hidden. To hide the first six digits of a phone number, we use the
<a href="https://www.flexmonster.com/api/customizecell/" target="_blank"
>customizeCell()</a
>
method (lines 62-71 in the JavaScript box).
</p>
<p>
When you click a cell with a phone number, the
<a href="https://www.flexmonster.com/api/cellclick/" target="_blank"
>cellclick</a
>
event is triggered. In its handler, we show the hidden phone number (lines
56-60).
</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>
<div id="pivotContainer"></div>