Spread ASP.NET 6.0 Product Documentation
OnClientClick Property
See Also  Example Send Feedback
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.