Spread for ASP.NET 7.0 Product Documentation
OnClientClick Property
See Also  Example Support Options
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 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.