Spread ASP.NET 16
Spread for ASP.NET 16 Product Documentation / Client-Side Scripting Reference / Scripting Members / Events / TouchStripClosed
In This Topic
    TouchStripClosed
    In This Topic

    Occurs when Spread closes a touch strip.

    Syntax

    [Inline HTML]

    <ELEMENT TouchStripClosed = "handler" ...>

    [JavaScript]

    FpSpread1.addEventListener("TouchStripClosed", handler, ...)

    or

    FpSpread1.onTouchStripClosed = handler

    Arguments

    event.Area
    Location of the touch click
    event.spread
    Spread that raises the event
    event.TouchStrip
    Gets the TouchStrip instance that represents the touch menu bar

    Return Type

    None

    Remarks

    This event is triggered when the touch menu is closed. The area argument can be TOUCHSTRIP_CELL, TOUCHSTRIP_ROW, TOUCHSTRIP_COLUMN, or TOUCHSTRIP_CHART.

    Example

    This example JavaScript code maps the event for the Spread on the client side.

    JavaScript
    Copy Code

    <script type="text/javascript">

    window.onload = function () {
        var spread = document.getElementById("FpSpread1");

        spread.addEventListener("TouchStripClosed", function (e) {

            if (e.Area == e.TOUCHSTRIP_CELL) {
                alert("closed");
            }

        });
    }

    </script>