Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / EnableClientScript Property
Example


In This Topic
    EnableClientScript Property
    In This Topic
    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:

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