ASPxClientWebDocumentViewer.EditingFieldChanged Event

Occurs each time an editing field's value changes.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v18.2.Web.Scripts.dll


public event ASPxClientWebDocumentViewerEditingFieldChangedEventHandler EditingFieldChanged
Public Event EditingFieldChanged As ASPxClientWebDocumentViewerEditingFieldChangedEventHandler

Event Data

The EditingFieldChanged event handler receives an argument of the ASPxClientWebDocumentViewerEditingFieldChangedEventArgs type. The following properties provide information specific to this event.

Property Description
Field Gets an editing field whose value has been changed.
NewValue Provides access to a new value of an editing field.
OldValue Provides access to a previous value of an editing field.


Each time the current field value changes, the EditingFieldChanged event occurs, allowing you to respond to this action (for instance, validate input data or format the edited value).

The example below demonstrates how to change an editing field's value to a previous value if a new value does not meet to required conditions.

<script type="text/javascript" id="script">
    function editingFieldChanged(s, e) {       
        if (( === "UnitsInStock") && (e.NewValue > 100))
            e.NewValue = e.OldValue;

<dx:ASPxWebDocumentViewer ID="ASPxWebDocumentViewer1" runat="server" ReportSourceId="WebReportDesigner.XtraReport1">
     <ClientSideEvents EditingFieldChanged="editingFieldChanged"/>
See Also