Spread for ASP.NET 11 Product Documentation
EnableClientScript Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : EnableClientScript Property
Gets or sets whether the Spread component can use client-side JavaScript for up-level browsers.
Syntax
'Declaration
 
Public Property EnableClientScript As Boolean
'Usage
 
Dim instance As FpSpread
Dim value As Boolean
 
instance.EnableClientScript = value
 
value = instance.EnableClientScript
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:

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.
FpSpread1.EnableClientScript=true;
FpSpread1.EnableClientScript=True
See Also

Reference

FpSpread Class
FpSpread Members

User-Task Documentation

Setting the EnableClientScript Property