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


In This Topic
    OnClientClick Property (CheckBoxCellType)
    In This Topic
    Gets or sets the OnClientClick event settings of the cell.
    Syntax
    'Declaration
     
    Public Property OnClientClick As String
    'Usage
     
    Dim instance As CheckBoxCellType
    Dim value As String
     
    instance.OnClientClick = value
     
    value = instance.OnClientClick
    public string OnClientClick {get; set;}
    Example
    This example sets the OnClientClick property.
    FarPoint.Web.Spread.CheckBoxCellType check = new FarPoint.Web.Spread.CheckBoxCellType();
    check.OnClientClick = "alert(\'You clicked the cell\');";
    FpSpread1.Sheets[0].Cells[1, 1].CellType = check;
    
    
    Dim check As New FarPoint.Web.Spread.CheckBoxCellType()
    check.OnClientClick = "alert('You clicked the cell');"
    FpSpread1.Sheets(0).Cells(0, 0).CellType = check
    
    
    See Also