# Understanding Effects of Client-Side Validation

This topic describes the various effects of client-side validation. Learn more in documentation.

## Content

To enable client-side validation, you use the [EnableClientScript](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.EnableClientScript.html) property. But setting this property affects many aspects of the FpSpread component, including its appearance and what events occur. By setting the [EnableClientScript](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.EnableClientScript.html) property to false, the component produces pages that are similar to the pages the component produces for down-level browsers.
The following table describes the effect the setting of the [EnableClientScript](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.EnableClientScript.html) property has on the component.

| **Feature** | **EnableClientScript Property Setting and Effect** |
| ------- | ---------------------------------------------- |
| Command bar buttons | When it is set to false, the command bar buttons change to display an Edit button and the Cut, Copy, and Paste buttons are not displayed. |
| Control size | When it is set to false, the component automatically sizes to the size of the page. For example, if the sheet has only two columns and two rows, the component displays only those two columns and rows, and no gray area. |
| Events | The events that occur for the [FpSpread](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.html) class are affected by the setting of this property, the [AutoPostBack](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SheetView.AutoPostBack.html) property, and the SheetView class’s [OperationMode](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SheetView.OperationMode.html) property as listed in the table in [Understanding the Effect of Mode on Events](/spreadnet/docs/latest/online-asp/overview/spweb-devguide/spweb-datamanage/spweb-serverscripting/spweb-cscript-modeeffects). |
| Message row display | If it is set to true, the component displays error messages as pop‑ups. If it is set to false, the component adds an extra row below the row with the error, in which to display the error message. The additional row is not numbered. |
| Selection display | If it is set to true, the selection text color is not displayed, but the row or column header displays the selection background color. If it is set to false, the selection text color is displayed, but the row or column header do not display the selection background color. |
| Styles (and cell editor) | If it is set to false when using a custom style (a [NamedStyle](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.NamedStyle.html) object), you should set the [Parent](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.NamedStyle.Parent.html) property of the [NamedStyle](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.NamedStyle.html) to DataAreaDefault because the style has no editor and so no cells are editable. Set the [Parent](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.NamedStyle.Parent.html) property to use DataAreaDefault as the parent style so that the GeneralCellType editor is inherited from the DataAreaDefault and the cells are thus editable. |

The following image displays the control with the [EnableClientScript](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.FpSpread.EnableClientScript.html) property set to false.
![Effects of client-side validation](https://cdn.mescius.io/document-site-files/images/346c9178-0ed8-4fb9-908b-1565b22fb408/artwork/downlevel.png)