Spread for ASP.NET 12 Product Documentation
Using the Touch Menu Bar
Spread for ASP.NET 12 Product Documentation > Developer's Guide > Using Touch Support with the Component > Using Touch Support > Using the Touch Menu Bar

You can use the default touch menu bar or touch strip to cut, copy, and paste cells. You can also customize the touch strip to provide additional options.

Tap a selected range to display the touch menu bar strip. The following image displays a default touch menu.

The touch menu bar provides additional options when selecting a column or row (insert, delete, hide, or unhide).

You can add custom menu items to the touch strip.

You can prevent the touch strip from being displayed on the server side by setting the TouchStrips property to None.

There are several client-side events and classes that can be used with the touch strip: TouchStripOpening, TouchStripOpened, TouchStripClosed, MenuItem, TouchStrip, and TouchStripItem.

Using Code

  1. Create a touch strip.
  2. Create touch strip items.
  3. Add the menu items to the touch strip.
  4. Specify when to display the touch strip.

Example

This example adds custom items to the touch strip.

C#
Copy Code
FarPoint.Web.Spread.TouchStrip touchStrip = new FarPoint.Web.Spread.TouchStrip();
FarPoint.Web.Spread.TouchStripItem parent = new FarPoint.Web.Spread.TouchStripItem("Other....");
parent.ChildItems.Add(new FarPoint.Web.Spread.MenuItem("Child item"));
touchStrip.Items.Add(parent);
FpSpread1.TouchStrips[FarPoint.Web.Spread.TouchStripShowingArea.Cell] = touchStrip;
VB
Copy Code
Dim touchStrip As New FarPoint.Web.Spread.TouchStrip()
Dim parent As New FarPoint.Web.Spread.TouchStripItem("Other....")
parent.ChildItems.Add(New FarPoint.Web.Spread.MenuItem("Child item"))
touchStrip.Items.Add(parent)
FpSpread1.TouchStrips(FarPoint.Web.Spread.TouchStripShowingArea.Cell) = touchStrip
See Also