Spread for ASP.NET 11 Product Documentation
OnClientClick Property (CheckBoxCellType)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > CheckBoxCellType Class : OnClientClick Property
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

Reference

CheckBoxCellType Class
CheckBoxCellType Members