Spread ASP.NET 6.0 Product Documentation
OnClientClick Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ButtonCellType 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 ButtonCellType
Dim value As String
 
instance.OnClientClick = value
 
value = instance.OnClientClick
C# 
public string OnClientClick {get; set;}

Property Value

String containing the ClientClick event settings of the cell

Example

This example pops up an alert when the user presses the button in the cell.
C#Copy Code
FarPoint.Web.Spread.ButtonCellType btn = new FarPoint.Web.Spread.ButtonCellType();
btn.OnClientClick = "alert(\'You clicked the button\');";
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = btn;
Visual BasicCopy Code
Dim btn As New FarPoint.Web.Spread.ButtonCellType
btn.OnClientClick = "alert('You clicked the button');"

FpSpread1.ActiveSheetView.Cells(1, 1).CellType = btn

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.