Spread ASP.NET 17
Spread for ASP.NET 17 Product Documentation / Developer's Guide / Using Touch Support with the Component / Using Touch Support / Using Touch Support with Scrolling
In This Topic
    Using Touch Support with Scrolling
    In This Topic

    You can use touch gestures when scrolling in the control.

    You can tap the scroll bar or press and slide the scroll bar to scroll. You can also use panning gestures in the cell area of the control (vertical, horizontal, or oblique). Panning in the diagonal direction scrolls horizontally and vertically. Specify the type of panning mode with the PanningMode property and SpreadPanningMode enumeration.

    Scrollbars

    Horizontal Panning

    Vertical Panning

    Diagonal Panning

    Panning does not apply to header or footer areas.

    Using Code

    Set the PanningMode property.

    Example

    This example sets the PanningMode property to Both.

    C#
    Copy Code
    FpSpread1.Sheets[0].Columns.Count = 10;
    FpSpread1.Sheets[0].Rows.Count = 20;
    FpSpread1.TouchInfo.PanningMode = FarPoint.Web.Spread.SpreadPanningMode.Both;
    VB
    Copy Code
    FpSpread1.Sheets(0).Columns.Count = 10
    FpSpread1.Sheets(0).Rows.Count = 20
    FpSpread1.TouchInfo.PanningMode = FarPoint.Web.Spread.SpreadPanningMode.Both
    See Also