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


Glossary Item Box

Gets or sets whether the Spread component can use client-side JavaScripts for up-level browsers.

Syntax

Visual Basic (Declaration) 
Public Property EnableClientScript As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Boolean
 
instance.EnableClientScript = value
 
value = instance.EnableClientScript
C# 
public bool EnableClientScript {get; set;}

Property Value

true to enable client scripting; otherwise false

Remarks

If this property is true and the user's browser does not support it, no validation occurs. Only up-level browsers (Internet Explorer 5.5 and later) support such scripting.

Validation of the component is performed on the server. However, you can use this property to allow the component to perform validation on the client. Client-side validation checks user input before it is sent to the server. This allows errors to be detected on the client before the form is submitted and avoids the round-trip of information necessary for server-side validation.

This property setting affects other aspects of the component besides validation, as follows:

  • Certain events do not occur, depending on this property setting and the setting for the SheetView object's OperationMode setting
  • Some features of default sheet skins provided with the product do not appear the same depending on the property setting
  • The command bar displays different command buttons
  • NamedStyle should have a Parent property set to allow cell editing

For more information about the effects of setting this property, see Setting the EnableClientScript Property.

Example

This example enables the spreadsheet to use client-side Java script for up-level browsers.
C#Copy Code
FpSpread1.EnableClientScript=true;
Visual BasicCopy Code
FpSpread1.EnableClientScript=True

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.