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


Glossary Item Box

Gets or sets the OnClientClick event settings of the cell.

Syntax

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

Example

This example sets the OnClientClick property.
C#Copy Code
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;

Visual BasicCopy Code
Dim check As New FarPoint.Web.Spread.CheckBoxCellType()
check.OnClientClick = "alert('You clicked the cell');"
FpSpread1.Sheets(0).Cells(0, 0).CellType = check

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.