Spread for ASP.NET 7.0 Product Documentation
onTouchStripOpened
Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Events > onTouchStripOpened

Glossary Item Box

Occurs when Spread displays a touch strip.

Syntax

[Inline HTML]

<ELEMENT onTouchStripOpened = "handler" ...>

[Event Property]

FpSpread1.onTouchStripOpened = handler

[Named Script]

<SCRIPT FOR=FpSpread1 EVENT=onTouchStripOpened>

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 opened. 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("TouchStripOpened", function (e) {

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

    });
}

</script>

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.