Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ButtonCellType Class / OnClientClick Property

In This Topic
    OnClientClick Property (ButtonCellType)
    In This Topic
    Gets or sets the OnClientClick event settings of the cell.
    Public Property OnClientClick As String
    Dim instance As ButtonCellType
    Dim value As String
    instance.OnClientClick = value
    value = instance.OnClientClick
    public string OnClientClick {get; set;}

    Property Value

    String containing the ClientClick event settings of the cell
    This example pops up an alert when the user presses the button in the cell.
    FarPoint.Web.Spread.ButtonCellType btn = new FarPoint.Web.Spread.ButtonCellType();
    btn.OnClientClick = "alert(\'You clicked the button\');";
    FpSpread1.ActiveSheetView.Cells[1, 1].CellType = btn;
    Dim btn As New FarPoint.Web.Spread.ButtonCellType
    btn.OnClientClick = "alert('You clicked the button');"
    FpSpread1.ActiveSheetView.Cells(1, 1).CellType = btn
    See Also