Spread for ASP.NET 7.0 Product Documentation
ServiceUpPath Property
See Also  Example Support Options
FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > NumericUpDownCellType Class : ServiceUpPath Property


Glossary Item Box

Gets or sets the path to the helper Web service for the up button.

Syntax

Visual Basic (Declaration) 
Public Property ServiceUpPath As String
Visual Basic (Usage)Copy Code
Dim instance As NumericUpDownCellType
Dim value As String
 
instance.ServiceUpPath = value
 
value = instance.ServiceUpPath
C# 
public string ServiceUpPath {get; set;}

Property Value

String containing the path to the Web service

Example

This example creates a numeric up-down cell type.
C#Copy Code
FarPoint.Web.Spread.Extender.NumericUpDownCellType n = new FarPoint.Web.Spread.Extender.NumericUpDownCellType();
n.Step = 1;
n.Width = 130;
n.ShowEditor = true;
n.ServiceUpPath = "WebService.asmx";
n.ServiceUpMethod = "Increment";
n.ServiceDownPath = "WebService.asmx";
n.ServiceDownMethod = "Decrement";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = n;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = 1;

[WebMethod()]
    public double Increment(double current) {
        current = (current + 0.25);
        if ((current > 10)) {
            current = 10;
        }
        return current;
    }
    
    [WebMethod()]
    public double Decrement(double current) {
        current = (current - 0.25);
        if ((current < 0.25)) {
            current = 0.25;
        }
        return current;
    }
Visual BasicCopy Code
Dim n As New FarPoint.Web.Spread.Extender.NumericUpDownCellType
n.Step = 1
n.Width = 130
n.ShowEditor = True
n.ServiceUpPath = "WebService.asmx"
n.ServiceUpMethod = "Increment"
n.ServiceDownPath = "WebService.asmx"
n.ServiceDownMethod = "Decrement"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = n
FpSpread1.ActiveSheetView.Cells(0, 0).Value = 1

<WebMethod()>
Public Function Increment(ByVal current As Double) As Double
  current = current + 0.25
    If current > 10 Then
    current = 10
    End If
  Return current
 End Function
 <WebMethod()>
 Public Function Decrement(ByVal current As Double) As Double
  current = current - 0.25
    If current < 0.25 Then
    current = 0.25
    End If
  Return current
End Function

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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